Solved

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

Posted on 2004-08-03
2
1,478 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

930 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

13 Experts available now in Live!

Get 1:1 Help Now