更改数据捕获-监视单列

时间:2018-08-13 07:21:52

标签: sql sql-server cdc

下午,

我已在特定表(下面的代码)上启用了CDC,但是我想知道是否有可能仅跟踪LocationTypeID column上的更改,但仍记录系统表中该行的其余列?

EXEC sys.sp_cdc_enable_table  
@source_schema = N'LocationManagementOperational',  
@source_name   = N'FunctionalLocation',  
@role_name     = N'Public',  
@captured_column_list = N'[ID], [ParentID], [LocationTypeID], [Path], [Elevation], [InclinationPositionX], [InclinationPositionY], [InclinationPercentage], [InclinationAzimuth], [DispatchSignId], [MaterialGeometry], [DynamicDigLimitInclination], [LastUpdate], [RecordStatus]',
@index_name = N'UQ_FunctionalLocation',
@supports_net_changes = 1

0 个答案:

没有答案