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:

To create a merge publication

  1. Create a new MergePublication object.
  2. Set the Name property.
  3. Set the PublicationAttributes property as appropriate.
  4. Add the MergePublication object to the MergePublications collection of a connected ReplicationDatabase object.

To alter a merge publication

  1. Get a MergePublication object from the MergePublications collection of a connected ReplicationDatabase object.
  2. Use the BeginAlter method to mark the beginning of the changes.
  3. Set the MergePublication properties to reflect the changes to the merge publication.
  4. Use the DoAlter method to submit the changes to Microsoft® SQL Server™.
Methods
BeginAlter Method GenerateFilters Method
CancelAlter Method GrantPublicationAccess Method
DoAlter Method RefreshChildren Method
EnumAllSubsetFilters Method ReInitializeAllSubscriptions Method
EnumGeneratedSubsetFilters Method Remove Method (Objects)
EnumPublicationAccesses Method RevokePublicationAccess Method
EnumPublicationReferences Method Script Method (Replication Objects)
EnumSubscriptions Method  

Properties
CentralizedConflicts Property Priority Property
DynamicFilters Property PublicationAttributes Property
Description Property RetentionPeriod Property
Enabled Property SnapshotAvailable Property
HasSubscription Property SnapshotJobID Property
ID Property SnapshotMethod Property
Name Property  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.