This stored procedure removes the information about the specified primary server from the secondary server, and removes the copy job and restore job from the secondary.
Transact-SQL Syntax Conventions
[ @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)
sp_delete_log_shipping_secondary_primary must be run from the master database on the secondary server. This stored procedure does the following:
Deletes the copy and restore jobs for the secondary ID.
Deletes the entry in log_shipping_secondary.
Calls sp_delete_log_shipping_alert_job on the monitor server.
Only members of the sysadmin fixed server role can run this procedure.
(1500 characters remaining)
Thank you for your feedback