sp_help_log_shipping_monitor_secondary (Transact-SQL)
Returns information regarding a secondary database from the monitor tables.
Transact-SQL Syntax Conventions
| Column | Description |
|---|---|
|
secondary_server |
The name of the secondary instance of the Microsoft SQL Server Database Engine in the log shipping configuration. |
|
secondary_database |
The name of the secondary database in the log shipping configuration. |
|
secondary_id |
The ID for the secondary server in the log shipping configuration. |
|
primary_server |
The name of the primary instance of the SQL Server Database Engine in the log shipping configuration. |
|
primary_database |
The name of the primary database in the log shipping configuration. |
|
restore_threshold |
The number of minutes allowed to elapse between restore operations before an alert is generated. |
|
threshold_alert |
The alert to be raised when the restore threshold is exceeded. |
|
threshold_alert_enabled |
Determines if restore threshold alerts are enabled. 1 = Enabled. 0 = Disabled. |
|
last_copied_file |
The filename of the last backup file copied to the secondary server. |
|
last_copied_date |
The time and date of the last copy operation to the secondary server. |
|
last_copied_date_utc |
The time and date of the last copy operation to the secondary server, expressed in Coordinated Universal Time. |
|
last_restored_file |
The filename of the last backup file restored to the secondary database. |
|
last_restored_date |
The time and date of the last restore operation on the secondary database. |
|
last_restored_date_utc |
The time and date of the last restore operation on the secondary database, expressed in Coordinated Universal Time. |
|
history_retention_period |
The amount of time, in minutes, that log shipping history records are retained for a given secondary database before being deleted. |
Reference
System Stored Procedures (Transact-SQL)Other Resources
Log ShippingLog Shipping Tables and Stored Procedures