Unwanted database mail when jobs run successfully

Last post 10-07-2008 3:02 PM by jrdevdba. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 10-02-2008 3:46 PM

    Unwanted database mail when jobs run successfully

    Hello,

    I have set up some jobs on SQL 2005 Standard Edition SP2 (9.0.3042) 64-bit, including hourly transaction log backups. I tested out the jobs by setting the Notifications section to send an email to the operator when the job completes. (I thought at first I had picked "When the job succeeds," but I picked "When the job completes.")

    I tested the jobs successfully and switched the Notifications section to send an email "When the job fails." However, I am still getting the email notifications, even though the jobs are succeeding.

    I ran SELECT * FROM sysjobs in msdb to check that the setting was correct in the sysjobs table, and it is - the notify_level_email column is set to 2, which means "When the job fails" according to the sysjobs table description at MSDN:

    http://msdn.microsoft.com/en-us/library/ms189817.aspx

    Does anyone know why the job is not "listening" to the updated notification setting? How can I correct its behavior?

    Thanks for any help!

     

    -jrdevdba

  • 10-07-2008 1:45 PM In reply to

    Re: Unwanted database mail when jobs run successfully

    Once it is modified, it should not pickup the old behaviour but...you can try restaring the SQL Agent

    MohammedU.
    Microsoft SQL Server MVP
    Moderator
    SQL-Server-Performance.com

    All postings are provided “AS IS” with no warranties for accuracy.
  • 10-07-2008 3:02 PM In reply to

    Re: Unwanted database mail when jobs run successfully

     Thanks - I tried restarting SQL Server Agent using the Take Offline/Bring Online command in the Cluster Administrator (it's a clustered db). Is that correct or should I restart from within SSMS?

    Thanks again,
    jrdevdba

     

Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.