共用方式為


MergeArticle Object

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

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

顯示目前物件的 SQL-DMO 物件模型

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

ID Property

Status Property (MergeArticle)

Name Property

SubsetFilterClause Property

Methods

BeginAlter Method

Remove Method (Objects)

CancelAlter Method

Script Method (Replication Objects)

DoAlter Method

ScriptDestinationObject Method

備註

With the MergeArticle object, you can:

  • Add an article to a merge publication.
  • Change the properties of an existing merge article.

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.

ms135086.note(zh-tw,SQL.90).gif附註:
The MergeArticle object is compatible with instances of SQL Server versions 7.0 and later. However, the MergeArticle2 object extends the functionality of the MergeArticle object for use with features that were introduced in SQL Server 2000.

請參閱

參考

MergeArticle2 Object

說明及資訊

取得 SQL Server 2005 協助