August 24, 2006 at 10:30 pm
August 24, 2006 at 11:55 pm
Detach database, move files to a new location and attach it again.
_____________
Code for TallyGenerator
August 25, 2006 at 6:18 am
use master
go
exec sp_detach_db 'YourDB'
go
-------------
Move the data and log files to their new locations.
use master
go
exec sp_attach_db 'YourDB'
, 'PATH_TO_YourDB_DATAFILE\YourDB_datafile.mdf'
, 'PATH_TO_YourDB_LOGFILE\YourDB_logfile.ldf'
go
You can find lots of usefull info here too:
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply