DistributionPublishers Collection
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The DistributionPublishers collection contains DistributionPublisher objects that expose the properties of Publishers using the referenced Distributor.
Methods
注释
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
Get a DistributionPublisher object from the DistributionPublishers collection of a connected Distributor object.
Use the Remove method.