Solved

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

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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

690 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