Export (0) Print
Expand All
Expand Minimize

sp_help_log_shipping_secondary_primary (Transact-SQL)

This stored procedure retrieves the settings for a given primary database on the secondary server.

Topic link icon Transact-SQL Syntax Conventions

[ @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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft