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.



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.

  • 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 '16 at 23:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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