Uninstalls replication publishing and distribution on the currently connected instance of SQL Server.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
- Type: System.Boolean
A Boolean value that specifies whether or not replication objects are removed from the server, even if a remote Distributor cannot be reached. If true, the publishing and Distributor configuration at the current server is uninstalled regardless of whether or not dependent publishing and distribution objects are uninstalled. If false, all dependent publishing and distribution objects are dropped before the Distributor is uninstalled.
Before calling , you must first perform the following tasks:
Delete all publications. For more information, see NIB Delete a Publication (RMO Programming).
Drop any distribution databases. For more information, see NIB Disable Publishing and Distribution (RMO Programming).
The method can only be called by members of the sysadmin fixed server role.
The method is equivalent to executing the sp_dropdistributor (Transact-SQL) stored procedure.