I'm going to run via a SQL Job
a backup which will back up 4 databases. What I want to do is to be able to send an email via my Database Mail profile
if any of the backup's fail.
Now I know there is a very obvious way of doing this on the job itself but my boss doesn't want it done like that.
What we want is within the T-SQL
code for the job is to be able to detect the backup failing or the job itself failing and then send the email.
I hope I've explained the issue.
Thanks to everyone in advance who may have some ideas for me.
Nick