The RegisteredSubscribers collection contains RegisteredSubscriber objects referencing Microsoft® SQL Server™ installations that are maintained as registry entries and are visible to replication as targets for Publisher-originated (push) subscriptions.
SQL Server replication enhances the registry-maintained lists of SQL Server installations by associating replication components, such as schedules and security, with registry-listed installations. SQL-DMO makes this association visible through the RegisteredSubscriber object and RegisteredSubscribers collection.
For more information about registry-maintained lists of SQL Server installations, see RegisteredServer Object.
With the RegisteredSubscribers collection, you can:
For more information about configuring push-subscription capable installations by using the RegisteredSubscriber object and RegisteredSubscribers collection, see RegisteredSubscriber Object.
To disable a push subscription to a registered installation
When using the Item or Remove method, the RegisteredSubscribers collection supports member identification using either name or ordinal reference syntax. For example:
Set oRegisteredSubscriber = oPublisher.RegisteredSubscribers("LONDON2")
Or:
Set oRegisteredSubscriber = oPublisher.RegisteredSubscribers(2)
Add Method | Remove Method (Collections) |
Item Method | Script Method (Replication Objects) |
Refresh Method |