共用方式為


DistributionPublishers Collection

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

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

顯示目前物件的 SQL-DMO 物件模型

備註

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.