Drops a subscription at the current database of the Subscriber.
sp_droppullsubscription [@publisher =] 'publisher',
[@publisher_db =] 'publisher_db', [@publication =] 'publication'
[,[@reserved =] 'reserved']
0 (success) or 1 (failure)
sp_droppullsubscription is used in snapshot and transactional replication.
sp_droppullsubscription deletes the corresponding row in the MSreplication_subscriptions table and the corresponding Distributor Agent at the Subscriber. If no rows are left in Msreplication_subscriptions, it drops the table.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_droppullsubscription.
sp_addpullsubscription | System Stored Procedures |