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
 General SQL Server Forums
 Database Design and Application Architecture
 detached database

Author  Topic 

csphard
Posting Yak Master

113 Posts

Posted - 2010-02-25 : 11:29:41
I detached a database and wanted to make a copy of the detached database but could not access the folder where the mdf file exist.

I think its because of my departments policy but and not sure if sql server is stoping me. This folder should be accessible for me to make a copy of it correct?

Howard

Kristen
Test

22859 Posts

Posted - 2010-02-25 : 11:40:33
Assuming you have folder / file permissions then after you DETACH the database then SQL Server will not prevent you copying / moving / deleting the file.
Go to Top of Page

csphard
Posting Yak Master

113 Posts

Posted - 2010-02-25 : 11:42:15
I did not understand your answer. sql server is preventing us?
Go to Top of Page

csphard
Posting Yak Master

113 Posts

Posted - 2010-02-25 : 11:59:42
quote:
Originally posted by csphard

I did not understand your answer. sql server is preventing us?



We can attach it to another database. We just wanted to make a physical copy of it prior so that we have a backup.

I hope this is understandable.

Thanks
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-02-25 : 12:14:17
Once the database is detached, the files are accessible as SQL Server no longer has a handle on them. So yes you should be able to make a copy of them.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -