Solved

Database recovery

Posted on 2001-07-29
10
497 Views
Last Modified: 2012-05-05
Hello,
Can someone tell my, how can i "import" an database, i have only the mdf and ldf file, into a new mssql7 server. With the restore dosnt works.
Thanks for you answer
Christian
0
Comment
Question by:christian68
10 Comments
 
LVL 18

Expert Comment

by:nigelrivett
ID: 6332145
Look at sp_attach_db which should work if the files were detached correctly.

Also try sp_attach_single_file_db which just attaches the mdf and creates a new ldf.
0
 

Author Comment

by:christian68
ID: 6332198
Thanks, now i have this error received:
The header for file 'xxx' is not a valid database file header. The FGID property is incorrect.
How can i "repair" this ?
thanks
Christian
0
 
LVL 18

Expert Comment

by:nigelrivett
ID: 6332205
Did the files come from a v7 server?
If so then it probably means the files are corrupt
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:christian68
ID: 6332215
There are from a v7 server, and i try it on also an v7 version.
If there any change to repair theis file (i hope)
0
 
LVL 18

Accepted Solution

by:
nigelrivett earned 100 total points
ID: 6332228
Don't think so.
FGID is presumable the file group ID.

I take it you don't have the original database so you can do a proper backup?

0
 

Author Comment

by:christian68
ID: 6332842
I have only now this file, nothing else.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6333211
Did the files come from the SQL7, with same SP. If the old server had SP2+, and the server you are trying to restore is with no SP, then that error can happen...

Cheers
0
 

Expert Comment

by:CleanupPing
ID: 9281944
christian68:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 9623409
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Award points to nigelrivett

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Anthony
EE Cleanup Volunteer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.

810 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