sys.dm_tran_commit_table (Transact-SQL)


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

Displays one row for each transaction that is committed for a table that is tracked by SQL Server change tracking. The sys.dm_tran_commit_table management view, which is provided for supportability purposes and exposes the transaction-related information that change tracking stores in the sys.syscommittab system table. The sys.syscommittab table provides an efficient persistent mapping from a database-specific transaction ID to the transaction's commit log sequence number (LSN) and commit timestamp. The data that is stored in the sys.syscommittab table and exposed in this management view is subject to cleanup according to the retention period specified when change tracking was configured.

System_CAPS_ICON_note.jpg Note

To call this from Azure SQL Data Warehouse or Parallel Data Warehouse, use the name sys.dm_pdw_nodes_tran_commit_table.

Column nameData typeDescription
commit_tsbigintA monotonically increasing number that serves as a database-specific timestamp for each committed transaction.
xdes_idbigintA database-specific internal ID for the transaction.
commit_lbnbigintThe number of the log block that contains the commit log record for the transaction.
commit_csnbigintThe instance-specific commit sequence number for the transaction.
commit_timesmalldatetimeThe time when the transaction was committed.
pdw_node_idintApplies to: Azure SQL Data Warehouse, Parallel Data Warehouse

The identifier for the node that this distribution is on.

Dynamic Management Views and Functions (Transact-SQL)
About Change Tracking (SQL Server)

Community Additions