Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy database files

Status
Not open for further replies.

dpdg

Programmer
May 23, 2005
148
US
I want to copy the sql server databases that are on my computer to a disk so that I can reformat my harddrive and start with a clean drive. But I can't copy the databases that are in the Data folder.

How do I do that?
 
You need to use detach database.

An alternative would be to close down SQL Server, but detach database is definitely preferable.

Another option would be to backup the database and copy the backup file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top