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)
 Attach DB

Author  Topic 

jung1975
Aged Yak Warrior

503 Posts

Posted - 2006-10-01 : 13:07:41
Can you attach DB using only .mdf file? would the DB be the same as the original Db ( except log file). I am trying to create a new log file ( start from the scrach) but keep the same data.

I just want to make sure that the data will be the same except the log.


efelito
Constraint Violating Yak Guru

478 Posts

Posted - 2006-10-01 : 13:41:57
See "Attaching a Single-File Database" in books online. sp_attach_single_file_db should work as long as the database was cleanly shutdown using sp_detach_db.

Jeff Banschbach, MCDBA
Go to Top of Page

jung1975
Aged Yak Warrior

503 Posts

Posted - 2006-10-01 : 13:49:37
will offline Db work as smas as detach Db in SQL server 2005?


Go to Top of Page
   

- Advertisement -