Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restoring from mdf

Status
Not open for further replies.

sqlnerd

Programmer
Jan 21, 2003
24
IN
I have this query....

If the logical database got deleted and only the physical data file (.mdf) is available, is it possible to get back the data from the .mdf file by any means and access it through another database name? Pl. help me
 
If you have the data file (ie. mydatabase.mdf), you should be able to just ATTACH the database. In Enterprise Manager, expand down to the server/instance and right-click. Click on All Tasks > Attach Database. Provide the proper information in the pop-up window and that should attach your database. Of course, this will give it the original name. Once it's attached you can change the name if you really need to.

-SQLBill
 
Thanks a lot SQLBill... after I posted this query, I searched Books online and got it... and recovered my database... but thanks a lot... it only assures that tek-tips is really really the place to look for the final answer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top