Skip to content

Latest commit

 

History

History
75 lines (59 loc) · 3.15 KB

File metadata and controls

75 lines (59 loc) · 3.15 KB
title sp_dropsubscriber (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql-server-2016
ms.reviewer
ms.suite
ms.technology
replication
ms.tgt_pltfrm
ms.topic language-reference
applies_to
SQL Server
f1_keywords
sp_dropsubscriber_TSQL
sp_dropsubscriber
helpviewer_keywords
sp_dropsubscriber
ms.assetid 8c6eb282-81b5-4ec4-b691-aa061d9267dc
caps.latest.revision 27
author BYHAM
ms.author rickbyh
manager jhubbard

sp_dropsubscriber (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]

Removes the Subscriber designation from a registered server. This stored procedure is executed at the Publisher on the publication database.

Important

This stored procedure has been deprecated. You are no longer required to explicitly register a Subscriber at the Publisher.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_dropsubscriber [ @subscriber= ] 'subscriber'   
    [ , [ @reserved= ] 'reserved' ]   
    [ , [ @ignore_distributor = ] ignore_distributor ]  

Arguments

[ @subscriber= ] 'subscriber'
Is the name of the Subscriber to be dropped. subscriber is sysname, with no default.

[ @reserved= ] 'reserved'
[!INCLUDEssInternalOnly]

[ @ignore_distributor = ] ignore_distributor
[!INCLUDEssInternalOnly]

Return Code Values

0 (success) or 1 (failure)

Remarks

sp_dropsubscriber is used in all types of replication.

This stored procedure removes the server sub option and removes the remote login mapping of system administrator to repl_subscriber.

Permissions

Only members of the sysadmin fixed server role can execute sp_dropsubscriber.

See Also

Delete a Push Subscription
Delete a Pull Subscription
sp_addsubscriber (Transact-SQL)
sp_changesubscriber (Transact-SQL)
sp_helpdistributor (Transact-SQL)
sp_helpserver (Transact-SQL)
sp_helpsubscriberinfo (Transact-SQL)
System Stored Procedures (Transact-SQL)