Solved

Database recovery

Posted on 2001-07-29
10
493 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
 

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
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.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

760 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

22 Experts available now in Live!

Get 1:1 Help Now