Anyone who is using this script can schedule this on 1st of every month for moving full backup file from source to destination location. The name of the source file is considered as "2014_05_31". You can change the source format according to your needs.
Restore multiple db's to new server with new file locations
Script queries backupset & backupmediafamily tables to get latest backup file, then generates script to restore db using backup file and moves files to new locations.
2013-09-10 (first published: 2013-08-28)
1,340 reads