top of page

Setting Failure Alerts and Fail safe Operators on SQL Agent Jobs

Setting up failure emails on jobs can be an important step in ensuring that you are promptly notified of any issues with your jobs. Here are some general steps to set up failure emails on jobs:

  • Determine what email notifications you want to receive: Before setting up failure emails on jobs, you need to determine what email notifications you want to receive. Do you want to receive an email for every job failure, or only for certain types of failures? Do you want to receive an email immediately, or at a certain time each day?

  • Set up a notification system: Once you have determined what email notifications you want to receive, you need to set up a notification system. This can typically be done within the job scheduling software you are using. Most job scheduling software will allow you to set up email notifications for job failures.

  • Configure job failure notifications: Once you have set up your notification system, you need to configure job failure notifications. This typically involves setting up rules that will trigger an email notification when a job fails. You may need to specify the type of failure that will trigger the notification, as well as the email addresses that should receive the notification.

  • Test the notification system: Before relying on your notification system, it is important to test it to ensure that it is working properly. You can do this by deliberately causing a job to fail and verifying that you receive the expected email notification.

By setting up failure emails on jobs, you can be alerted to issues with your jobs in a timely manner, which can help you address the issues before they become more serious.


To set up a notifier for a job success or failure in SQL Server Agent, you can follow these steps:

  • Open SQL Server Management Studio: Open SQL Server Management Studio and connect to the SQL Server instance that you want to work with.

  • Expand the SQL Server Agent: In the Object Explorer, expand the SQL Server Agent node.

  • Create a new alert: Right-click on the Alerts node and select "New Alert". This will open the "New Alert" dialog box.

  • Configure the alert properties: In the "New Alert" dialog box, enter a name for the alert and configure the conditions that will trigger the alert. For example, you can set the alert to trigger when a job fails or when a job completes successfully.

  • Configure the alert actions: In the same dialog box, select the "Response" tab and click "New". This will open the "New Operator" dialog box. Enter the email address of the person who should receive the alert notification and configure any other settings as necessary.

  • Save the alert: Click "OK" to save the alert.

  • Enable the alert: Right-click on the alert you just created and select "Enable". This will ensure that the alert is active and will trigger notifications when the specified conditions are met.

By following these steps, you can set up a notifier for a job success or failure in SQL Server Agent. When the specified conditions are met, an email notification will be sent to the specified email address to alert you of the job status.


To Manage Alerts In SSMS

Drill Down To Jobs Right Click On Job --> Properties

What it I want to Notify More Than One Person


You can add multiple e-mail address to the e-mail name of the operator.

If you want to notify more than one person for a job success or failure in SQL Server Agent, you can follow these steps:

  • Create an operator: Right-click on the "SQL Server Agent" node in the Object Explorer and select "Operators". In the "Operators" window, right-click and select "New Operator". Enter the name of the operator, and configure the email settings, phone number, pager, etc. for each person who should receive the notification.

  • Add the operator to the alert: Follow the steps outlined in the previous answer to create an alert. In the "New Operator" dialog box, select the operator you just created and click "Add". This will add the operator to the alert so that all of the specified recipients will receive the notification when the alert is triggered.

  • Save and enable the alert: Click "OK" to save the alert and then right-click on the alert and select "Enable" to ensure that the alert is active and will trigger notifications when the specified conditions are met.

By creating an operator and adding it to the alert, you can notify multiple people for a job success or failure in SQL Server Agent. All of the specified recipients will receive an email notification when the alert is triggered. Note that each recipient must be separated by a ; not a ,


How Can I setup A Fail Safe Operator


To set up a fail-safe operator for job success or failure in SQL Server Agent, you can follow these steps:

  • Create an operator: Right-click on the "SQL Server Agent" node in the Object Explorer and select "Operators". In the "Operators" window, right-click and select "New Operator". Enter the name of the operator and configure the email settings, phone number, pager, etc. for the fail-safe operator.

  • Configure job notifications: In the Object Explorer, navigate to the Jobs folder and right-click on the job you want to configure. Select "Properties" and go to the "Notifications" page.

  • Add the fail-safe operator: Under "When the job fails", select "Email" and add the fail-safe operator as the recipient. You can also configure additional settings, such as the email subject and message.

  • Save the changes: Click "OK" to save the changes to the job properties.

By following these steps, you can set up a fail-safe operator for job success or failure in SQL Server Agent. If the job fails and no other operators are configured to receive notifications, the fail-safe operator will receive an email notification. This ensures that someone is always notified in the event of a job failure.



How Can I send SMS text message to a e-mail

To send an SMS text message to an email address, you can follow these steps:

  • Identify the recipient's mobile carrier: In order to send an SMS message to an email address, you will need to know the recipient's mobile carrier. This information is necessary because each carrier has its own unique email address format that is used to send SMS messages.

  • Compose your message: Compose your SMS text message as you normally would, keeping in mind that SMS messages are typically limited to 160 characters.

  • Format the email address: To send the SMS message to an email address, you will need to format the email address using the recipient's mobile carrier email address format. The email address format typically looks something like this: <10-digit-phone-number>@<carrier-specific-email-domain>. For example, if the recipient's phone number is 555-123-4567 and their carrier is AT&T, the email address would be 5551234567@txt.att.net.

  • Send the message: Once you have formatted the email address correctly, you can send the SMS message as an email to the recipient's email address.

Note: It's important to keep in mind that the recipient's mobile carrier may charge them for receiving SMS messages, and standard data rates may apply if they receive the message over a cellular data network rather than Wi-Fi.


Other Resources


Get in Touch

Thanks for submitting!

bottom of page