sp_change_log_shipping_secondary_primary (Transact-SQL)
SQL Server 2008
Changes secondary database settings.
sp_change_log_shipping_secondary_primary [ @primary_server = ] 'primary_server', [ @primary_database = ] 'primary_database', [, [ @backup_source_directory = ] 'backup_source_directory'] [, [ @backup_destination_directory = ] 'backup_destination_directory'] [, [ @file_retention_period = ] file_retention_period] [, [ @monitor_server_security_mode = ] monitor_server_security_mode] [, [ @monitor_server_login = ] 'monitor_server_login'] [, [ @monitor_server_password = ] 'monitor_server_password']
sp_change_log_shipping_secondary_primary must be run from the master database on the secondary server. This stored procedure does the following:
Changes settings in the log_shipping_secondary records as necessary.
If the monitor server is different from the secondary server, changes monitor record in log_shipping_monitor_secondary on the monitor server using supplied arguments, if necessary.

