I have the following SQL backup command that runs every night. It sometimes fails and I wanted to add a notification email to "infosys"
BACKUP DATABASE [S030] TO DISK = N'\\Sh-case2\S030Backup\S030Full.bak' WITH INIT , NOUNLOAD , NAME = N'S030 backup FULL', NOSKIP , STATS = 10, DESCRIPTION = N'Full Backup', NOFORMAT
I tried adding -To "Infosys" and it told me that was a syntax error. what should I add to get the notification email?
BACKUP DATABASE [S030] TO DISK = N'\\Sh-case2\S030Backup\S030Full.bak' WITH INIT , NOUNLOAD , NAME = N'S030 backup FULL', NOSKIP , STATS = 10, DESCRIPTION = N'Full Backup', NOFORMAT
I tried adding -To "Infosys" and it told me that was a syntax error. what should I add to get the notification email?