tencent cloud

TencentDB for SQL Server

CDC Column Consistency Check

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-03 16:31:53
AI 번역 및 품질 검수 완료

Check Details

Check objective
Verify whether the column set of existing CDC capture instances in the source database is consistent with the current columns of the source table, preventing task failures during the incremental phase due to column definition mismatches and surfacing issues before task startup rather than during the incremental phase.
Check content
DTS adds a CDC column consistency check before task startup to detect whether the column set of CDC capture instances in the source database is consistent with the current columns of the source table.
Note:
The column set of a capture instance is fixed at creation and is not automatically updated with source table DDL changes. Typical scenario: A capture instance is created first, and then an ALTER TABLE ADD COLUMN command is executed on the source table.
Potential issue
If the column set of a CDC capture instance on the source table is inconsistent with the current columns of the source table, the first capture cycle in the incremental phase will report "Invalid column name" and cause the task to fail.

Fixing Method

Rebuild the capture instance: If a mismatch is detected, rebuild the CDC capture instance for the table in the source database as prompted.
Use sys.sp_cdc_disable_table to disable the old capture instance.
Use sys.sp_cdc_enable_table to create a new capture instance.
Perform the operation during off-peak hours to avoid impacting the source database business.
Query failure degradation: If a check query fails due to insufficient permissions or other reasons, the failure is downgraded to an alarm instead of blocking the task. Pay attention to the alarm, supplement the required permissions, and then re-validate.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백