Take the 2-minute tour ×
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. It's 100% free, no registration required.

I want a monitor on my replica (destination) server to message me:

a) once a day, telling me: "Data as of is ### minutes old"

b) any time data is older than N minutes (indicating log shipping has gone down)

I typically have tlogs moving every 5 minutes, on a very active database.

Thank you!

share|improve this question
add comment

1 Answer

a) once a day, telling me: "Data as of is ### minutes old"

You have to get the status using master..sp_help_log_shipping_monitor to get the status. There are many scripts available that will send out HTML email through SQL Agent job like

b) any time data is older than N minutes (indicating log shipping has gone down)

The job LSAlert_XX where XX is the instance name, run a job exec sys.sp_check_log_shipping_monitor_alert to check if the restore of the log has fallen behind N mins. You can edit/configure it to send out emails in case where it has fallen behind N mins.

share|improve this answer
add comment

Your Answer

 
discard

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.