Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.89 KB

sp-delete-log-shipping-secondary-database-transact-sql.md

File metadata and controls

65 lines (45 loc) · 1.89 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_delete_log_shipping_secondary_database (Transact-SQL)
Removes a secondary database and removes the local history and remote history.
MashaMSFT
mathoma
randolphwest
01/23/2024
sql
system-objects
reference
sp_delete_log_shipping_secondary_database_TSQL
sp_delete_log_shipping_secondary_database
sp_delete_log_shipping_secondary_database
TSQL

sp_delete_log_shipping_secondary_database (Transact-SQL)

[!INCLUDE SQL Server]

This stored procedure removes a secondary database and removes the local history and remote history.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_delete_log_shipping_secondary_database
    [ @secondary_database = ] N'secondary_database'
    [ , [ @ignoreremotemonitor = ] ignoreremotemonitor ]
[ ; ]

Arguments

[ @secondary_database = ] N'secondary_database'

The name of the secondary database. @secondary_database is sysname, with no default.

[ @ignoreremotemonitor = ] ignoreremotemonitor

[!INCLUDE ssinternalonly-md]

Return code values

0 (success) or 1 (failure).

Result set

None.

Remarks

sp_delete_log_shipping_secondary_database must be run from the master database on the secondary server.

Permissions

Only members of the sysadmin fixed server role can run this procedure.

Related content