SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 New SQL Server installation - existing databases
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

adlo
Posting Yak Master

108 Posts

Posted - 08/30/2004 :  14:12:28  Show Profile  Reply with Quote
I installed Win Xp SP2 and it crashed my PC.
I was forced to reinstall windows and sql server.
Is it possible to recreate the same database using the existing database files. There is only an option for restore database and one needs a backup for that.
I have the original database files.

tkizer
Almighty SQL Goddess

USA
36997 Posts

Posted - 08/30/2004 :  14:16:19  Show Profile  Visit tkizer's Homepage  Reply with Quote
Well, maybe.

Try sp_attach_db to attach the MDF and LDF files to the database server. Syntax is documented in SQL Server Books Online.

Tara
Go to Top of Page

adlo
Posting Yak Master

108 Posts

Posted - 08/30/2004 :  14:44:17  Show Profile  Reply with Quote
Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000