Adds a server that subscribes to all articles in the publication.
Publication.AddFullSubscriber (
[ServerName :=] idServer,
[[DestinationDatabase :=] idDatabase,]
[[InitialSyncType :=] tSyncType,]
[[Status :=] tStatusType] )
HRESULT pPublication->AddFullSubscriber (
SQLOLE_LPCSTR idServer,
SQLOLE_LPCSTR idDatabase = NULL,
SQLOLE_SUBSYNC_TYPE tSyncType = SQLOLESubSync_Default,
SQLOLE_SUBSTATUS_TYPE tStatusType = SQLOLESubStat_Default );
Element | Type | Description |
---|
idServer | Identifier | Name of the subscription server. |
idDatabase | Identifier | Destination database. Default is the publication database name. |
tSyncType | SQLOLE_SUBSYNC_TYPE | Type of initial synchronization event used to synchronize the subscription server. |
tStatusType | SQLOLE_SUBSTATUS_TYPE | Status of the subscription. |