| title | sp_delete_log_shipping_secondary_database (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/14/2017 | ||
| ms.prod | sql-non-specified | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | c71b21c0-ec04-4fbd-9735-01128b736935 | ||
| caps.latest.revision | 20 | ||
| author | JennieHubbard | ||
| ms.author | jhubbard | ||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]
This stored procedure removes a secondary database and removes the local history and remote history.
| Applies to: [!INCLUDEssNoVersion] ([!INCLUDEssKatmai] through current version). |
Transact-SQL Syntax Conventions
sp_delete_log_shipping_secondary_database
[ @secondary_database = ] 'secondary_database'
[ @secondary_database = ] 'secondary_database'
Is the name of the secondary database. secondary_database is sysname, with no default.
0 (success) or 1 (failure)
None.
sp_delete_log_shipping_secondary_database must be run from the master database on the secondary server.
Only members of the sysadmin fixed server role can run this procedure.
About Log Shipping (SQL Server)
System Stored Procedures (Transact-SQL)