AddReplicatedColumns Method (SQL-DMO)

The AddReplicatedColumns method vertically partitions a transactional or snapshot replication article.

Applies To

TransArticle Object

Syntax

object.AddReplicatedColumns( str )

Part Description
object Expression that evaluates to an object in the Applies To list
str SQL-DMO multistring naming columns in the table referenced by the transactional replication article

Remarks

When using SQL-DMO to create a transactional or snapshot replication article, all columns in a table referenced by the article are replicated by default.

An initial column list, set by using the AddReplicatedColumns method, establishes an initial vertical partition of the replicated table. The initial partition can be established prior to article creation (before the TransArticle object is added to its containing collection) or to an existing, nonpartitioned article.

When the TransArticle object references an existing partitioned article, the AddReplicatedColumns method is nondestructive. That is, columns specified in the str argument are added to the list of those establishing the vertical partition.

For more information about altering a partition definition by using SQL-DMO, see RemoveReplicatedColumns Method.

Prototype (C/C++)

HRESULT AddReplicatedColumns(SQLDMO_LPCSTR NewValue);

  


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