Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL 2008 SQL Server Agents Jobs, how to populate email for Notifications

I am trying to add my email address to notifications for SQL Server Agent Job when it fails..

So I go SQL Server agent, open up the jobs, right click on the job and select properties and then notifications. I can check email there and have to select email address from a dropdown but the dropdown is blank and can't edit it..

Any Ideas

like image 302
StevieB Avatar asked Apr 18 '11 13:04

StevieB


People also ask

How do I monitor my SQL Server Agent job?

To open the Job Activity Monitor, expand SQL Server Agent in Management Studio Object Explorer, right-click Job Activity Monitor, and click View Job Activity. You can also view job activity for the current session by using the stored procedure sp_help_jobactivity.

How do you send an automatic email in SQL?

Procedure. Using Object Explorer in SQL Server Management Studio, connect to an instance of SQL Server Database Engine where Database Mail is configured, expand Management, right-click Database Mail, and then select Send Test E-Mail.


1 Answers

You need to first create an operator for the SQL Agent to use. Under the SQL Server Agent folder, right click on the Operators folder and select "New Operator..." Supply a name for the operator and an email address. You'll then select this operator by the name you chose in the Notifications drop down for the job.

enter image description here

like image 97
Joe Stefanelli Avatar answered Sep 21 '22 20:09

Joe Stefanelli