sp_dropdistpublisher (T-SQL)
Drops a distribution Publisher.
Syntax
sp_dropdistpublisher [@publisher =] 'publisher' [,[@no_checks =] no_checks]
Arguments
- [@publisher =] 'publisher'
- Is the Publisher to drop. publisher is sysname, with no default.
- [@no_checks =] no_checks
- Is whether sp_dropdistpublisher checks to be sure the Publisher has uninstalled the server as the Distributor. no_checks is bit, with a default of 0. If 0 and the distribution publisher is remote, the stored procedure checks to make sure the remote publisher has uninstalled the local server as the distributor. If 0 and the distribution Publisher is local, the stored procedure checks to make sure that there are no publishing or distribution objects for the local server left. If 1, all the replication objects associated with the distribution publisher are dropped. After doing this, the remote Publisher must uninstall replication using sp_dropdistributor with @ignore_distributor = 1.
Return Code Values
0 (success) or 1 (failure)
Remarks
sp_dropdistpublisher is used in all types of replication.
Permissions
Only members of the sysadmin fixed server role can execute sp_dropdistpublisher.
See Also
(c) 1988-98 Microsoft Corporation. All Rights Reserved.