Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
sp_delete_log_shipping_secondary_primary
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
sp_delete_log_shipping_secondary_primary
[ @primary_server = ] N'primary_server'
, [ @primary_database = ] N'primary_database'
[ ; ]
The name of the primary instance of the SQL Server Database Engine in the log shipping configuration. @primary_server is sysname, and can't be NULL
.
The name of the database on the primary server. @primary_database is sysname, with no default.
0
(success) or 1
(failure).
None.
sp_delete_log_shipping_secondary_primary
must be run from the master
database on the secondary server. This stored procedure does the following:
sp_delete_log_shipping_alert_job
on the monitor server.Only members of the sysadmin fixed server role can run this procedure.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today