We can execute the below Log Shipping System Stored Procedure to monitor log shipping and get detailed information about log shipping.
• sp_help_log_shipping_monitor – This is the how SQL Server generates the Log Shipping Status report by executing
• sys.sp_help_log_shipping_monitor – This procedure returns the log shipping status (whether it is healthy or not) as well as metadata such as primary and secondary database names, time since last backup, last backup file, last restore file, etc…
• sp_help_log_shipping_monitor_primary – returns all columns from the log_shipping_monitor_primary table for the specified primary log shipping database. It returns server name, database name, time of last backup, backup threshold, threshold alert and history retention period.
• sp_help_log_shipping_monitor_secondary – returns all columns from log_shipping_monitor_secondary table for the
specified secondary log shipping database. It will return database name, server name, restore threshold, last copied
file, time of last copy / restore and history retention period.
Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.
Get Started
Comments
Leave a Comment