Updated: June 10, 2016
This stored procedure retrieves the settings for a given primary database on the secondary server.
|Applies to: SQL Server (SQL Server 2008 through current version).|
sp_help_log_shipping_secondary_primary [ @primary_server = ] 'primary_server' OR [ @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)
The result set contains the columns secondary_id, primary_server, primary_database, backup_source_directory, backup_destination_directory, file_retention_period, copy_job_id, restore_job_id, monitor_server, monitor_server_security_mode from log_shipping_secondary.
sp_help_log_shipping_secondary_primary must be run from the master database on the secondary server.
Only members of the sysadmin fixed server role can run this procedure.