Fail SQL job send email to ticket system

  • Hello, I am working on to create an email at a certain format (template) in the message body to a ticket system when a SQL job fails.

    My question is that:

    1) how can retrieve the error message from SQL server, i.e. which step, error code, error message.

    2) I understand that SQL can send the notification as email when a job fails as a built-in function, but this email doesn't contain the template format the ticket system require, is there a way to customize it?

    Thanks,

    fshguo.

  • yup - you query msdb and create your own mail routine and message.

    [font="Comic Sans MS"]The GrumpyOldDBA[/font]
    www.grumpyolddba.co.uk
    http://sqlblogcasts.com/blogs/grumpyolddba/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply