DBADDOPTION

Replication Programming

Replication Programming

DBADDOPTION

The DBADDOPTION constants specify if the Subscriber database exists or if it must be created or attached, or if the subscription must be attached, when calling the AddSubscription method of the SQLDistribution and SQLMerge objects.

Constant Value Description
ATTACH_DATABASE 2 Attaches a Subscriber database file, typically an .mdf (Microsoft® SQL Server™ Subscribers only).
ATTACH_SUBSCRIPTION 3 Attaches a subscription file, typically an .msf (Microsoft Subscription File).
CREATE_DATABASE 1 Creates the Subscriber database (SQL Server Subscribers only).
EXISTING_DATABASE 0 Uses an existing Subscriber database.
REGISTER_SUBSCRIPTION 4 Registers the existing subscription with Windows Synchronization Manager.

See Also

AddSubscription Method