MergeArticle Object (SQL-DMO)

The MergeArticle object represents a table published as part of a merge publication.

Remarks

With the MergeArticle object, you can:

To add an article (table) to a merge publication

  1. Create a new MergeArticle object.
  2. Set the Name property.
  3. Set the SourceObjectName property to the name of a table.
  4. Set the SourceObjectOwner property to the owner of the table.
  5. Add the MergeArticle object to the MergeArticles collection of a connected MergePublication object.

To alter an existing article (table) of an existing merge publication

  1. Get a MergeArticle object from the MergeArticles collection of a connected MergePublication object.
  2. Use the BeginAlter method to mark the beginning of the changes.
  3. Set the MergeArticle properties to reflect the changes to the article.
  4. Use the DoAlter method to submit the changes to Microsoft® SQL Server™.
Methods
BeginAlter Method Remove Method (Objects)
CancelAlter Method Script Method (Replication Objects)
DoAlter Method ScriptDestinationObject Method

Properties
ArticleResolver Property PreCreationMethod Property
ArticleType Property ResolverInfo Property
ColumnTracking Property SnapshotObjectName Property
ConflictTable Property SnapshotObjectOwner Property
CreationScriptOptions Property SourceObjectName Property
CreationScriptPath Property SourceObjectOwner Property
Description Property Status Property (MergeArticle) (SQL-DMO)
ID Property SubsetFilterClause Property
Name Property  

  


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