在更改跟踪中禁用列更新

Disabling COLUMN UPDATES in Change Tracking

我已使用以下命令启用更改跟踪:

ALTER TABLE Table1 ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON) 

但是,我注意到 TRACK_COLUMNS_UPDATED = ON 会产生开销,而且我的开发团队没有使用该功能。 如何设置TRACK_COLUMNS_UPDATED = OFF?我不想 disable/enable 更改跟踪,这可能会导致更改跟踪数据丢失。

我期待如下所示:

ALTER TABLE Table1 ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = OFF)

但这不是正确的语法。

显然你不能:一旦你在 SSMS 中启用 CHANGE_TRACKINGTRACK_COLUMNS_UPDATED 选项就会变灰:

这是来自 this 博客的另一个确认:

TRACK_COLUMNS_UPDATED property is optional. If set to ON, it is possible to find out which individual columns will be affected by each UPDATE operation: if omitted, its value is OFF (the default); be careful because, once Change Tracking is enabled, you cannot change the value of this option. If you do wish to change it, you must disable CT on the table and repeat the enabling procedure.