Solved

Database recovery

Posted on 2001-07-29
10
502 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

729 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