How to send email on scheduler job on both failure and success in MS SQL server

  • I have configured smtp email in MS sql server and configure email to schedular job when schedular jobs become failed. Can i configure email so that email will be sent from scheduler job on both success of job and Failure of job?

  • You can set the notification of the job to email the operator when the job completes -(i.e if it fails or succeeds).

  • By using operator, we can configure sending mail either in fail only or success only. is any possible to configure email using operator sending email not only in failure of job but also in success of schedular jobs.

  • USE [msdb]

    GO

    EXEC msdb.dbo.sp_update_job @job_id=N'<JOB_GUID>',

    @notify_level_email=3

    GO

    Running the following will set the job to send an alert when it completes.

    See attachment for screen shot of doing it through the GUI.

Viewing 4 posts - 1 through 3 (of 3 total)

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