This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Can we trigger alert on third consecutive SQL Agent Job failure?

Hello All,

There is cyclic job which executes every day with re-run interval 15 minutes.

We would like to ignore first 2 failures and send an alert only on third failure. Can this be achieved using DPA?

Thanks.

  • It would have to be a custom alert. There is one here you could use as a starter Job Failure.​ Looking history so sys.jobhistory perhaps alter the SQL to only return if a count of jobs with run status = 0 is > 3

    I didn't try it really but, looking to point you in the right direction.