cdc.lsn_time_mapping (Transact-SQL)


Updated: June 10, 2016

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Returns one row for each transaction having rows in a change table. This table is used to map between log sequence number (LSN) commit values and the time the transaction committed. Entries may also be logged for which there are no change tables entries. This allows the table to record the completion of LSN processing in periods of low or no change activity.

We recommend that you do not query the system tables directly. Instead, execute the sys.fn_cdc_map_lsn_to_time (Transact-SQL) and sys.fn_cdc_map_time_to_lsn (Transact-SQL) system functions.

Column nameData typeDescription
start_lsnbinary(10)LSN of the committed transaction.
tran_begin_timedatetimeTime that the transaction associated with the LSN began.
tran_end_timedatetimeTime that the transaction ended.
tran_idvarbinary(10)ID of the transaction.

The Transaction Log (SQL Server)
cdc.<capture_instance>_CT (Transact-SQL)

Community Additions