dbo.cdc_jobs (Transact-SQL)

儲存擷取和清除作業的異動資料擷取組態參數。這份資料表儲存在 msdb 中。

資料行名稱

資料類型

描述

database_id

int

在其中執行作業之資料庫的識別碼。

job_type

nvarchar(20)

作業的類型:「擷取」或「清除」。

job_id

uniqueidentifier

與作業相關聯的唯一識別碼。

maxtrans

int

每個掃描循環中要處理的交易數目上限。

maxtrans 僅適用於擷取作業。

maxscans

int

要執行以便從記錄中擷取所有資料列的掃描循環數目上限。

maxscans 僅適用於擷取作業。

continuous

bit

旗標,指出擷取作業是連續執行 (1),還是僅執行一次 (0)。如需詳細資訊,請參閱<sys.sp_cdc_add_job (Transact-SQL)>。

continuous 僅適用於擷取作業。

pollinginterval

bigint

記錄掃描循環之間的秒數。

pollinginterval 僅適用於擷取作業。

retention

bigint

變更資料列要保留在變更資料表中的分鐘數。

retention 僅適用於清除作業。

threshold

bigint

可以使用單一清除陳述式來刪除的最大刪除項目數。