Viewing 4 posts - 1 through 4 (of 4 total)
USE master
ALTER DATABASE myDatabase SET offline
ALTER DATABASE myDatabase MODIFY FILE (name=myDB_filename, FILENAME='X:\New_Path\myDatabase.mdf')
ALTER DATABASE myDatabase MODIFY FILE (name=myDB_logname, FILENAME='X:\New_Path\myDatabase_log.ldf')
** Physically move the files at this point to their new locations specified...
February 11, 2014 at 7:37 am
Arrg ... so simple! Thanks - that's perfect.
February 13, 2013 at 8:23 am
I was having a very similar problem importing csv files into SQL 2008 R2 through SSIS from a fileshare accessed by a UNC path.
The package worked perfectly from BIDS and...
March 27, 2012 at 9:42 am
Hi guys ...
When it says the snapshot has been marked as inactive, it's because the snapshot needs to run on it's own schedule in the background (and seems to ignore...
September 18, 2008 at 2:06 am
Viewing 4 posts - 1 through 4 (of 4 total)