The RemoveReplicatedColumns method configures a previously created, vertical partition for a transactional or snapshot replication article.
object.RemoveReplicatedColumns( Columns )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Columns | SQL-DMO multistring identifying one or more columns in the vertical partition |
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 article with an existing partition, the RemoveReplicatedColumns method restructures the partition. To restore default article behavior, use the RemoveReplicatedColumns method listing all columns in the current partition. Use the ListReplicatedColumns method to determine names of all columns participating in an existing partition.
HRESULT RemoveReplicatedColumns(
SQLDMO_LPCSTR Columns);
AddReplicatedColumns Method | ListReplicatedColumns Method |