RegisteredSubscriber Object
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The RegisteredSubscriber object represents the information a Publisher has about a Subscriber.
Methods
주의
With the RegisteredSubscriber object, you can:
Add a Subscriber at the Distributor or Publisher.
Change the properties of an existing Subscriber at the Distributor or Publisher.
To add a Subscriber at the Publisher
Create a new RegisteredSubscriber object.
Set the Name property to the server name of the Subscriber.
Add the RegisteredSubscriber object to the RegisteredSubscribers collection of a connected Publisher object.
To add a Subscriber at the Distributor
Create a new RegisteredSubscriber object.
Set the Name property to the server name of the Subscriber.
Add the RegisteredSubscriber object to the RegisteredSubscribers collection of a connected DistributionPublishers object.
To alter an existing Subscriber at the Publisher
Get a RegisteredSubscriber object from the RegisteredSubscribers collection of a connected Publisher object.
Use the BeginAlter method to mark the beginning of the changes.
Set the RegisteredSubscriber object properties to reflect the changes to the Subscriber.
Use the DoAlter method to submit the changes to Microsoft SQL Server.
To alter an existing Subscriber at the Distributor
Get a RegisteredSubscriber object from the RegisteredSubscribers collection of a connected DistributionPublishers object.
Use the BeginAlter method to mark the beginning of the changes.
Set the RegisteredSubscriber object properties to reflect the changes to the Subscriber.
Use the DoAlter method to submit the changes to SQL Server.