All, I am copy my databases from server A to server B by backup and restore.since I want the process to be automated, I created a job on server A . to copy the bakup files from the nightly job of Server A using Xcopy form a batch file. the process is working and the files gets copied to the server B.now I can simply write the restore script and run that as a job on server B.the issue is .the database files the of the naming convention databasename_2015_03_30_(some randon numbers,5192996).bakto automate the process i want one of the two options.- when xcopy copies the file to destination it will change the nae fo the file to simply databasename.bak- or the restore script shoudl be able to pick the latest backup file in the folder base don the date/time.Any help in appreciated.Regards
↧