Remove a secondary database
テ Summarize this article for me This article describes how to remove a log shipping secondary database in SQL Server by using SQL Server Management Studio or Transact-SQL.
テ
This article describes how to remove a log shipping secondary database in SQL Server by using
Management Studio or Transact-SQL.
- Connect to the instance of SQL Server that is currently the log shipping primary server
and expand that instance.
- Expand
, right-click the log shipping primary database, and then select.
- Under
, select.
- Under
, select the database you want to
remove.
-
Select.
-
Select
to update the configuration.
- On the primary server, execute
sp_delete_log_shipping_primary_secondary
to delete the
information about the secondary database from the primary server.
- On the secondary server, execute
sp_delete_log_shipping_secondary_database
to delete
the secondary database.
7
Note
If there are no other secondary databases with the same secondary ID,
is invoked from
and deletes the entry for the secondary
ID and the copy and restore jobs.
sp_delete_log_shipping_secondary_primary sp_delete_log_shipping_secondary_database