Microsoft SQL Server: Inner workings of RDA

原文:http://database.itags.org/sql-server/157556/

 

These 7 columns are used for tracking inserts and updates in the table. The tracking is required to identify the data that has changed for synchronization with the data in SQL Server. These are system columns and used only for replication of data. The description of the columns is as given below:

Col Name

Type

Description

__sysIG

INTEGER

The local generation at which the row has been inserted.

__sysCG

BIGINT

The generation of the change

__sysCD

DATETIME

The time and date the change occurred.

__sysP1

VARBINARY

Custom Property

__sysMC

VARBINARY

The bitmap of the changed columns

__sysMCS

VARBINARY

The bitmap of the changed columns, saved for change forwarding between sync partners.

__sysSR

VARBINARY

Server Reference

Apart from the 7 systems columns that are added to each SQL Mobile table which has data replicating with SQL Server, there are 3 systems tables - __sysTrackedObjects, __sysRowTrack, __sysDeletedRows. The systems tables are used as following:

__sysTrackedObjects : Holds information about various tracking related objects, such as sync partners, tracked tables, tracked columns, properties etc.

__sysRowTrack : Contains change information about rows and columns currently, it only contains information about rows deleted from user tables.

__sysDeletedRows : Contains temporary information about deleted rows. This information is merged into the __sysRowTrack table upon beginning of a sync

The __sysDeletedRows table holds the information about the deleted rows

 

 

The __sysMC column will have a value, which is like 0x000....80, if change is sent to the server, if not, it will have 0x00....81.

转载于:https://www.cnblogs.com/fightLonely/archive/2010/05/24/1742627.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值