Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SetUp Mail Notifications with Jobs failure Expand / Collapse
Author
Message
Posted Thursday, January 12, 2012 1:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 01, 2012 12:43 PM
Points: 4, Visits: 50
Hi All,

To new to know what to do here. Using SQL Server 2008 R2. Setup DB mail and restarted Agent service but mail notification on jobs still fails. Not sure what I am missing.

Any help is truly appreciated!!!!!!!!!

Thanks in advance,
d
Post #1235201
Posted Thursday, January 12, 2012 1:34 PM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, May 20, 2013 7:10 AM
Points: 485, Visits: 1,568
Look at you Mail Session properties to make sure it is active.

SQL Server Management Studio --> Connect to the SQL Instance in question.
Right Click on the SQL Server Agent. Click on Properties. Click on Alert System.

check to make sure your Enable Mail Profile box is checked and that you see your Mail system and Mail Profile as options to choose from.
Post #1235206
Posted Thursday, January 12, 2012 2:40 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 1:35 PM
Points: 197, Visits: 1,068
If you find that you have to enable the profile under SQL Agent, Alert System, you'll have to bounce SQL Agent for the change to take effect.
Post #1235252
Posted Friday, January 13, 2012 6:12 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:22 PM
Points: 6,660, Visits: 5,684
You say you set up DBMail, but did you set up Operators?

Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1235566
Posted Friday, January 13, 2012 6:29 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 01, 2012 12:43 PM
Points: 4, Visits: 50
Hi ALL. Thanks for the replies. I really appreciate the help in knowing what I am missing here....

Hi Geoff,

My agent properties show enabled and the Mail system is set to Database Mail. Which option do I want for the Mail Profile? Choices are SQL Server Agent Mail (which is chosen) or SQL Server Mail Profile?


Hi Chuck,

Agent property does show enabled.


Hi Brandie,

Yes, I did set up an Operator. Is there anything special I need to do here other than create it and point to it in the Notification section of the job?


Thanks again!!!
Denise
Post #1235573
Posted Friday, January 13, 2012 6:46 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:22 PM
Points: 6,660, Visits: 5,684
You've followed all the steps below?

Microsoft's DBMail Wizard Steps

Pinal Dave has a more user-friendly version here.


Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1235583
Posted Friday, January 13, 2012 9:14 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, January 22, 2013 3:23 PM
Points: 28, Visits: 109
This is a great alternative to setting up mail notifications on jobs without using SQL mail. It does have some limitations, but for failure/success notifications, it's great. And it's way less confusing to set up than SQL mail.

http://www.howtogeek.com/howto/database/sending-automated-job-email-notifications-in-sql-server-with-smtp/

Cheers.

Tom

Post #1235739
Posted Friday, January 13, 2012 9:18 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:22 PM
Points: 6,660, Visits: 5,684
thotvedt (1/13/2012)
This is a great alternative to setting up mail notifications on jobs without using SQL mail. It does have some limitations, but for failure/success notifications, it's great. And it's way less confusing to set up than SQL mail.


SQL Mail no longer exists in 2008. DBMail is a different animal.


Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1235751
Posted Friday, January 13, 2012 9:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 01, 2012 12:43 PM
Points: 4, Visits: 50
HI Brandie,

It looks like everything is fine and I am able to send a test email successfully but still no email job notification upon job completion (and yes I did check to see if it was set to send when complete)

Missing something here....
Post #1235816
Posted Friday, January 13, 2012 9:59 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:22 PM
Points: 6,660, Visits: 5,684
olingerd (1/13/2012)
HI Brandie,

It looks like everything is fine and I am able to send a test email successfully but still no email job notification upon job completion (and yes I did check to see if it was set to send when complete)

Missing something here....


yes, and I bet I know what it is, but ... tip of my tongue and all that.

I'm going to do a bit of research and get back to you as soon as I remember what that darned issue is.

BTW, is the profile set to public? (This isn't what I'm thinking of, but it's good to know).


Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1235827
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse