Freigeben über


DistributionPublishers Collection

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The DistributionPublishers collection contains DistributionPublisher objects that expose the properties of Publishers using the referenced Distributor.

SQL-DMO-Objektmodell, das das aktuelle Objekt anzeigt

Methods

Add Method

Remove Method (Collections)

Item Method

Script Method (Replication Objects)

Refresh Method

 

Hinweise

With the DistributionPublishers collection, you can:

  • Add a Publisher to a Distributor.
  • Generate a Transact-SQL command batch to script Publisher configuration for all Publishers using a Distributor.
  • Remove a Publisher from a Distributor.

To remove a Publisher from a Distributor

  1. Get a DistributionPublisher object from the DistributionPublishers collection of a connected Distributor object.

  2. Use the Remove method.