다음을 통해 공유


MergeArticle.ColumnTracking Property

Gets or sets how conflicts are detected when synchronizing data rows.

네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

구문

‘선언
Public Property ColumnTracking As Boolean
public bool ColumnTracking { get; set; }
public:
property bool ColumnTracking {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ColumnTracking ()

/** @property */
public void set_ColumnTracking (boolean value)
public function get ColumnTracking () : boolean

public function set ColumnTracking (value : boolean)

속성 값

A Boolean value. If true, each column in a row is evaluated separately for conflicts. If false, the entire row is evaluated to determine conflicts.

주의

If ColumnTracking is set to true, each column in a changed row is evaluated separately for conflicts. For example, column-level tracking enabled, if the Publisher and Subscriber both modify the same row but each modifies a different set of columns, no conflict is found and all changes are merged. If ColumnTracking is set to false, changes in the same row are determined to be in conflict.

If you set ColumnTracking after the initial snapshot has been created, a new snapshot must be generated.

If row tracking is used for conflict detection (the default), the base table can include a maximum of 1,024 columns, but columns must be filtered from the article so that a maximum of 246 columns is published. If column tracking is used, the base table can include a maximum of 246 columns. For more information on the tracking level, see the "Tracking Level" section of 병합 복제의 충돌 감지 및 해결 방법.

The ColumnTracking property can be retrieved by members of the sysadmin fixed server role at the Publisher and at the Subscriber (for republishing Subscribers). It can also be retrieved by members of the db_owner fixed database role on the publication database, by members of the replmonitor fixed database role at the Distributor, and by users who are members of the publication access list (PAL).

The ColumnTracking property can be set by members of the sysadmin fixed server role at the Publisher. It can also be set by members of the db_owner fixed database role on the publication database.

Retrieving ColumnTracking is equivalent to executing sp_helpmergearticle(Transact-SQL).

Setting ColumnTracking is equivalent to executing sp_add_targetservergroup(Transact-SQL) or sp_changemergearticle(Transact-SQL).

The ColumnTracking property is available with Microsoft SQL Server 7.0, Microsoft SQL Server 2000, and Microsoft SQL Server 2005.

Release

History

2005년 12월 5일

New content:
  • Documented column restrictions on published tables.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

MergeArticle Class
MergeArticle Members
Microsoft.SqlServer.Replication Namespace