You can detach the databases, copy the files to the new location, then then run an attach operation with the new file paths. You can use the system tables to help generate the commands to save some time. See the example below (undocumented procedure in use), you would need to save the output of the script and run that (minus the line spacers)SET QUOTED_IDENTIFIER OFF-- GENERATES ATTACH COMMAND, CHANGE DRIVE PATHS AS NEEDEDexec sp_msforeachdb "USE ?IF ( DB_NAME() NOT IN ( 'master', 'model', 'msdb', 'tempdb' ) )BEGIN SELECT 'sp_attach_db @dbname = ' + '?' SELECT ',@filename1 = N''' + filename + '''' FROM sysfiles WHERE name NOT IN ( 'master', 'model', 'msdb', 'tempdb' ) SELECT 'GO'END"GOUSE masterGO-- GENERATES DETACH COMMAND, NEED TO KILL CONNECTIONS FIRSTSELECT 'sp_detach_db ' + nameFROM sys.databasesWHERE name NOT IN ( 'master', 'model', 'msdb', 'tempdb' )GO
Jason Cumberland:wq