Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 New SQL Server installation - existing databases

Author  Topic 

adlo
Posting Yak Master

108 Posts

Posted - 2004-08-30 : 14:12:28
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

38200 Posts

Posted - 2004-08-30 : 14:16:19
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 - 2004-08-30 : 14:44:17
Thanks
Go to Top of Page
   

- Advertisement -