AddReplicatedColumns Method
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The AddReplicatedColumns method vertically partitions a transactional or snapshot replication article.
구문
object.AddReplicatedColumns(str)
Parts
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.
Prototype (C/C++)
HRESULT AddReplicatedColumns(SQLDMO_LPCSTR NewValue);
주의
When using SQL Distributed Management Objects (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 setting multistring parameters, see Using SQL-DMO Multistrings.
For more information about altering a partition definition by using SQL-DMO, see RemoveReplicatedColumns Method.
[!참고]
If an application sets AddReplicatedColumns after the initial snapshot has been created, a new snapshot must be generated and reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution or merge agent run.