TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sp_help_log_shipping_monitor_primary (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Returns information regarding a primary database from the monitor tables.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

  
sp_help_log_shipping_monitor_primary  
[ @primary_server = ] 'primary_server',   
[ @primary_database = ] 'primary_database'  

[ @primary_server = ] 'primary_server'
The name of the primary instance of the Microsoft SQL Server Database Engine in the log shipping configuration. primary_server is sysname and cannot be NULL.

[ @primary_database = ] 'primary_database'
Is the name of the database on the primary server. primary_database is sysname, with no default.

0 (success) or 1 (failure)

Column nameDescription
primary_idThe ID of the primary database for the log shipping configuration.
primary_serverThe name of the primary instance of the SQL Server Database Engine in the log shipping configuration.
primary_databaseThe name of the primary database in the log shipping configuration.
backup_thresholdThe number of minutes allowed to elapse between backup operations before an alert is generated.
threshold_alertThe alert to be raised when the backup threshold is exceeded.
threshold_alert_enabledDetermines if backup threshold alerts are enabled. 1 = enabled; 0 = disabled.
last_backup_fileThe absolute path of the most recent transaction log backup.
last_backup_dateThe time and date of the last transaction log backup operation on the primary database.
last_backup_date_utcThe time and date of the last transaction log backup operation on the primary database, expressed in Coordinated Universal Time.
history_retention_periodThe 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.

About Log Shipping (SQL Server)
System Stored Procedures (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft