title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_help_log_shipping_monitor_primary (Transact-SQL) |
Returns information regarding a primary database from the monitor tables. |
MashaMSFT |
mathoma |
randolphwest |
05/14/2024 |
sql |
system-objects |
reference |
|
|
|
[!INCLUDE SQL Server]
Returns information regarding a primary database from the monitor tables.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_help_log_shipping_monitor_primary
[ @primary_server = ] N'primary_server'
, [ @primary_database = ] N'primary_database'
[ ; ]
The name of the primary instance of the [!INCLUDE ssDEnoversion] in the log shipping configuration. @primary_server is sysname, with no default.
The name of the database on the primary server. @primary_database is sysname, with no default.
0
(success) or 1
(failure).
Column name | Description |
---|---|
primary_id |
The ID of the primary database for the log shipping configuration. |
primary_server |
The name of the primary instance of the [!INCLUDE ssDEnoversion] in the log shipping configuration. |
primary_database |
The name of the primary database in the log shipping configuration. |
backup_threshold |
The number of minutes allowed to elapse between backup operations before an alert is generated. |
threshold_alert |
The alert to be raised when the backup threshold is exceeded. |
threshold_alert_enabled |
Determines if backup threshold alerts are enabled. 1 = enabled; 0 = disabled. |
last_backup_file |
The absolute path of the most recent transaction log backup. |
last_backup_date |
The time and date of the last transaction log backup operation on the primary database. |
last_backup_date_utc |
The time and date of the last transaction log backup operation on the primary 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 primary database, before being deleted. |
sp_help_log_shipping_monitor_primary
must be run from the master
database on the monitor server.
Only members of the sysadmin fixed server role can run this procedure.