Solved

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

Posted on 2004-08-03
2
1,537 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
crescendo earned 500 total points
ID: 11711318
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
ID: 11712341
Cheers mate,

That works great!

Thanks for your help

Fracture
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

739 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