次の方法で共有


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.