Answered by:
SQL Agent Job completion notification

Question
-
Isn't there a way for SQL Agent to send a success email if a job is successful, and a failure email if the same job failed? I only see how to send one or the other. I could set up additional tasks and route the job to a success task or failure task upon success or failure, but with all of the completion options, event notifications, etc, it seems like there should be an easy built in way to simply send a success or failure notification.
Wednesday, June 29, 2011 9:20 AM
Answers
-
On the left hand (of the job's property) tab select notification to specify an operator name to be notified when job is failed
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/- Proposed as answer by Satish Kumar Gajula Wednesday, June 29, 2011 12:56 PM
- Marked as answer by Peja Tao Thursday, July 7, 2011 1:11 AM
Wednesday, June 29, 2011 9:38 AMAnswerer -
Configure SQL agent to send emails: - http://support.microsoft.com/kb/908360
How to: Notify an Operator of Job Status (SQL Server Management Studio) : - http://msdn.microsoft.com/en-us/library/ms191130.aspx
Harsh Chawla Personal Blog:-http://blogs.msdn.com/batala Team Blog:- http://blogs.msdn.com/b/sqlserverfaq/Wednesday, June 29, 2011 2:14 PM
All replies
-
On the left hand (of the job's property) tab select notification to specify an operator name to be notified when job is failed
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/- Proposed as answer by Satish Kumar Gajula Wednesday, June 29, 2011 12:56 PM
- Marked as answer by Peja Tao Thursday, July 7, 2011 1:11 AM
Wednesday, June 29, 2011 9:38 AMAnswerer -
Configure SQL agent to send emails: - http://support.microsoft.com/kb/908360
How to: Notify an Operator of Job Status (SQL Server Management Studio) : - http://msdn.microsoft.com/en-us/library/ms191130.aspx
Harsh Chawla Personal Blog:-http://blogs.msdn.com/batala Team Blog:- http://blogs.msdn.com/b/sqlserverfaq/Wednesday, June 29, 2011 2:14 PM -
Hi,
You can put the notification to send you an email to the desired operator "When the job completes".
So this will send you an email on both actions, whether it is a success or failure.
HTH,
Regards, Ashwin Menon My Blog - http:\\sqllearnings.wordpress.comThursday, June 30, 2011 2:55 AM