Class 3 Notes
Class 3 Notes
Log Shipping is a basic SQL Server high-availability technology that is part of SQL Server. It is an automated backup/restore
process that allows you to create another copy of your database for failover or reporting purposes.
You can use the below items to investigate if there are any issues with your databases that are setup for Log Shipping. We will
cover each of these items and how they can be used.
sp_help_log_shipping_monitor
o This is the how SQL Server generates the Log Shipping Status report by executing
sys.sp_help_log_shipping_monitor procedure. 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
o 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
o 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.