?
Solved

Database recovery

Posted on 2001-07-29
10
Medium Priority
?
506 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
[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
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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 400 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 143

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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

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
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

764 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