I have a DB01 originally residing on c:\Data together with it's log file. But the c: drive is becoming full. I've to move it to d:\Data . How should I do this? thanks! Please visit my WebCam!!
1 You could back up the existing database.
2 Create a new database on D:\data
3 Restore the existing database to the new DB on D:\data
4 Delete the old database Hope This Helps Bernadette
Hi,
Better is to detach database
--
EXEC sp_detach_db 'Your Database'
--
after it copy youdatabase_data.mdf to your new location
the last step is to attach it
--
EXEC sp_attach_single_file_db @dbname = 'YouDatabase',
@physname = 'NewPath\youdatabase_data.mdf'
--
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.