SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Send notifications on job STEP failures (trigger)

By spongemagnet, 2002/02/13

Total article views: 1577 | Views in the last 30 days: 37

Have you ever wanted to have SQL note a failure on a step, yet continue running the job.  I found it to be annoying that you have to fail (and end) a job in order to send a message to an operator.  I have processes that run at off times, I want to know when there are failures but I need the remainder of my steps to run, period. This trigger makes use of xp_sendmail to send emails to someone, as well as generate an error in SQL's error log.  I welcome any comments, suggestions and criticisms.

mailto:ken.singer@sagepub.com

By spongemagnet, 2002/02/13

Total article views: 1577 | Views in the last 30 days: 37
Your response
 
 
Related tags
 
Like this? Try these...

Monitor Object Changes

By DavidB | Category: Miscellaneous
| 1,170 reads
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com