How to transfer site content DB from C drive to Other drive

From:http://www.sharepointkings.com/2008/05/how-to-transfer-site-content-db-from-c.html
 
Many a times we face an issue that c drive is out of space especially b'coz our site content db is on c drive and we continue to add large size documents and media files etc. In order to get rid of this we can transfer the db to some other drive say d drive with more space. Here is how you can do it:

Go to SQL server management studio and right click on the content db.
As chances are that this db is currently in use hence first take it offline.
It will take some time to take it offline. Once done right click detach the db.
Now go to the location on the c drive program files sql server folder and find the db files. Cut the files from there and paste in a new folder on d drive.
Again go to mgmt studio and attach the db from the new location.
Done
posted @ 2008-10-24 23:04  laputa'sky  阅读(170)  评论(0编辑  收藏  举报