Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are batch jobs that occur in the middle of the night, which cause log shipping backups to be delayed such that they exceed the alert threshold, and alerts are then emailed.

How can I disable these alerts during this period only?

I don't want to reduce the alerting threshold for the entire day.


share|improve this question
up vote 1 down vote accepted

One approach is to use sp_help_log_shipping_alert_job to find the log shipping alert job ID and then use sp_update_job to suspend the job during maintenance. Enable it back when maintenance is done. I don't know whether the job would not immediately send an alert upon being enabled back though.

share|improve this answer
A slight variation of this appears to be just what I need - manually modifying the job (outside of the actual log shipping UI) to exclude certain hours in the alert job's schedule. – Nik May 7 '13 at 13:30
In my environment nightly batch jobs access the standby database so I turn off the LSAlert and LSRestore job schedules. LSCopy continues so when the LSRestore schedule is turned on, the trn files are ready to be restored. – jl01 Feb 3 at 23:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.