| title | sp_dropsubscriber (Transact-SQL) | ||
|---|---|---|---|
| description | sp_dropsubscriber removes the Subscriber designation from a registered server. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | replication | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server SQL MI]
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're no longer required to explicitly register a Subscriber at the Publisher.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_dropsubscriber
[ @subscriber = ] N'subscriber'
[ , [ @reserved = ] N'reserved' ]
[ , [ @ignore_distributor = ] ignore_distributor ]
[ , [ @publisher = ] N'publisher' ]
[ ; ]
The name of the Subscriber to be dropped. @subscriber is sysname, with no default.
[!INCLUDE ssinternalonly-md]
[!INCLUDE ssinternalonly-md]
[!INCLUDE ssinternalonly-md]
0 (success) or 1 (failure).
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.
Only members of the sysadmin fixed server role can execute sp_dropsubscriber.