Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Drops an anonymous agent for replication monitoring at the distributor from the Publisher. This stored procedure is executed at the Publisher on any database.
Transact-SQL syntax conventions
sp_dropanonymousagent
[ @subid = ] 'subid'
, [ @type = ] type
[ ; ]
The global identifier for an anonymous subscription. @subid is uniqueidentifier, with no default. This identifier can be retrieved at the Subscriber using sp_helppullsubscription
. The value in the @subid field of the returned result set is this global identifier.
The type of subscription. @type is int, with no default. Valid values are 1
or 2
.
1
, if snapshot replication or transactional replication using the Distribution Agent.2
, if merge replication using the Merge Agent.0
(success) or 1
(failure).
sp_dropanonymousagent
is used in all types of replication.
This stored procedure is used to drop anonymous subscription agents only and can't be used to drop well-known subscriptions.
Only members of the db_owner fixed database role in the distribution database can execute sp_dropanonymousagent
.
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!