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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 Attaching and deattaching database
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

9 Posts

Posted - 06/21/2013 :  02:55:42  Show Profile  Reply with Quote
can anybody tell me how to attach database file from other location in sql server 2005??????????


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 06/21/2013 :  03:06:50  Show Profile  Reply with Quote
1.detach the databse first using sql management studio gui or sp_detach_db procedure
2.copy mdf,ldf files to new server location
3. attach it to new server using ssms gui or sp_attach_db proc

SQL Server MVP
Go to Top of Page

Posting Yak Master

212 Posts

Posted - 07/25/2013 :  00:29:19  Show Profile  Visit prett's Homepage  Reply with Quote
You can not detach a SQL server database if any of below points are true:

1. Database is being mirrored in the mirroring.
2. Database is suspect.
3. Database is a system database.
4. Database is replicated & published.
Go to Top of Page
  Previous Topic Topic Next 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.08 seconds. Powered By: Snitz Forums 2000