DistributionPublisher Object (SQL-DMO)

The DistributionPublisher object represents a Publisher that is using this Distributor for replication.

Remarks

With the DistributionPublisher object, you can:

To add a Publisher to the Distributor

  1. Create a new DistributionPublisher object.
  2. Set the Name property to the server name of the Publisher.
  3. Set the DistributionDatabase property.
  4. Set the DistributionWorkingDirectory property.
  5. Add the DistributionPublisher object to the DistributionPublishers collection of a connected Distributor object.

To alter an existing Publisher

  1. Get a DistributionPublisher object from the DistributionPublishers collection of a connected Distributor object.
  2. Use the BeginAlter method to mark the beginning of the changes.
  3. Set the DistributionPublisher properties to reflect the changes to the Publisher.
  4. Use the DoAlter method to submit the changes to Microsoft® SQL Server™.
Methods
BeginAlter Method EnumMergeAgentSessionDetails Method
CancelAlter Method EnumMergeAgentSessions Method
DoAlter Method EnumSnapshotAgentSessionDetails Method
EnumAgentErrorRecords Method EnumSnapshotAgentSessions Method
EnumDistributionAgentSessionDetails Method GetAgentsStatus Method (DistributionPublication, DistributionPublisher)
EnumDistributionAgentSessions Method Refresh Method
EnumLogReaderAgentSessionDetails Method Remove Method (Objects)
EnumLogReaderAgentSessions Method Script Method (Replication Objects)

Properties
DistributionDatabase Property Name Property
DistributionWorkingDirectory Property ThirdParty Property
Enabled Property TrustedDistributorConnection Property

  


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