MergePublication Object (SQL-DMO)
The MergePublication object represents a merge publication. A publication contains one or more articles (tables) that contain the replicated data.
Remarks
With the MergePublication object, you can:
- Create a new merge publication.
- Change the properties of an existing merge publication.
To create a merge publication
- Create a new MergePublication object.
- Set the Name property.
- Set the PublicationAttributes property as appropriate.
- To enable push subscriptions, use SQLDMOPubAttrib_AllowPush.
- To enable pull subscriptions, use SQLDMOPubAttrib_AllowPull.
- To enable anonymous subscriptions, use SQLDMOPubAttrib_AllowPull and SQLDMOPubAttrib_AllowAnonymous.
- To enable Internet subscriptions, use SQLDMOPubAttrib_InternetEnabled.
- Add the MergePublication object to the MergePublications collection of a connected ReplicationDatabase object.
To alter a merge publication
- Get a MergePublication object from the MergePublications collection of a connected ReplicationDatabase object.
- Use the BeginAlter method to mark the beginning of the changes.
- Set the MergePublication properties to reflect the changes to the merge publication.
- Use the DoAlter method to submit the changes to Microsoft® SQL Server™.
Methods
Properties
(c) 1988-98 Microsoft Corporation. All Rights Reserved.