question

ramesh 1 avatar image
ramesh 1 asked

sql server 2005

hi team, i have .mdf how to attach the database,please help
sql-server-2005attachsingle-file
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Kev Riley avatar image
Kev Riley answered
If the file has been properly detached, then you could use [sp_attach_single_file_db][1] This is actually a deprecated feature now, and going forward you should use [CREATE DATABASE with FOR ATTACH_REBUILD_LOG][2] again this requires that the database had a clean shutdown. [1]: http://msdn.microsoft.com/en-us/library/ms174385.aspx [2]: http://msdn.microsoft.com/en-us/library/ms176061.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.