Will this work for the detach/move/attach approach?
1> Execute the following SQL against the master database (I'll be using SqlCommand with an SQLConnection to "master" in my VB.NET code to do all SQL):
EXEC sp_detach_db @dbname = N'CatalogName';
2> Then MOVE the underlying "OldPathName\OldDatabaseFileName.mdf" and "OldPathName\OldLogFileName.ldf" files to "NewPathName\NewDatabaseFileName.mdf" and "NewPathName\NewLogFileName.ldf", respectively, with 2 standard File.Move statements
3> Then do this against the master:
CREATE DATABASE CatalogName ON (FILENAME = 'NewPathName\NewDatabaseFileName.mdf'), (FILENAME = 'NewPathName\NewLogFileName.ldf') FOR ATTACH;
Finally, is this the most reliable way to move the mdf and log files while keeping them associated with the same catalog? Or is Bruce's (SQLWorks.com) approach more reliable? If the latter, then what's the SQL/VB.NET code needed for that approach?