Solved

How to setup a SQL Job failure notification by email ?

Posted on 2013-12-05
3
557 Views
Last Modified: 2013-12-06
I can able to send email through Database mail. But I am not able to configure the
Job failure notification email since it is empty. (Please see my attachement).

How to configure the SQL job failure notification  email ?
notification.png
0
Comment
Question by:Varshini S
  • 2
3 Comments
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 39699509
Have you configured an account and profile in the Database Mail feature? (Seems a silly question, but I believe you can send database mail through code without performing these steps.)
0
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 500 total points
ID: 39699540
Configure dbmail: http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/

Enable mail profile: Right click sql server agent > Properties > Alert System > Check "Enable mail profile" and then select the mail profile you made above

Create an operator: http://technet.microsoft.com/en-us/library/ms175962(v=sql.105).aspx

Edit: after you create the operator, you should see the operator name in the dropdown you posted in your screenshot
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 39699545
I believe PadawanDBA got it right with the Operator piece.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now