Uninstall Method (SQL-DMO)

The Uninstall method removes Microsoft® SQL Server™ components implementing replication.

Applies To
Distributor Object Replication Object
Publisher Object  

Syntax

object.Uninstall( )

Part Description
object Expression that evaluates to an object in the Applies To list.

Remarks

Use the Uninstall method of the Publisher object to remove only those components implementing publication. Use the Uninstall method of the Distributor or Replication object to remove all replication-implementing components.

For the Replication object, SQL-DMO implements the Boolean argument bIgnoreDistributor. bIgnoreDistributor is evaluated only when the Replication object references a Publisher using a remote Distributor. When True, the Uninstall method removes all components implementing publication and subscription on the Publisher and attempts to connect to the Distributor and remove publication-implementating components.

When False (default), only the Publsher is affected by method execution. Use the CleanUpDistributionPublisherByName method referencing the remote distributor to remove publication-implementing components.

Prototype (C/C++)

HRESULT Uninstall();

HRESULT Uninstall(BOOL bIgnoreDistributor = FALSE);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.