Solved

Cannot find file ID 2 ... Restore Database is terminating abnormaly

Posted on 2004-08-03
2
1,453 Views
Last Modified: 2008-01-09
Hi there,

I am trying to load a backup from my online server to my local but keep getting the error in the title of this question.

In the title of the error it says MIcrosoft SQL-DMO (ODBC SQL State: 42000)

Would anyone be able to help me with this?

Cheers,

Fracture
0
Comment
Question by:Fracture
2 Comments
 
LVL 9

Accepted Solution

by:
crescendo earned 500 total points
Comment Utility
The error means that your log file (.ldf) does not exist by the name in the backup, so your online server and local server must be set up slightly differently.

If you know where your local log file is, you can use restore with the MOVE option.

RESTORE LOG database_name
FROM < backup_device >
MOVE 'logical_file_name' TO 'operating_system_file_name'
0
 

Author Comment

by:Fracture
Comment Utility
Cheers mate,

That works great!

Thanks for your help

Fracture
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now