Hello,
I am trying to set up a recurring backup job in SQL Studio Management 2008 to back up one database 5 days a week, Monday through Friday. I would like the name of the backup file to be in format DBNAME_YYYYMMDDHHMM as in DBNAME_201107202300.
I set it up multiple times and it didn’t work for some reason. In Script action to job, I include the following command
BACKUP DATABASE [DBNAME] TO DISK = N'E:\SQLBackup\DBNAME_ 201107202300' WITH NOFORMAT, NOINIT, NAME = N'DBNAME-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
Then in Schedules, I click New then give it a name then in the frequency section I leave it as Weekly and select Mon-Fri then set the hour I want the job to run. I leave all the rest at their defaults.
The next morning I arrive, I check my destination folder and I see no backup was taken.
What am I doing wrong???
Thank you,