sys.dm_xtp_transaction_stats (Transact-SQL)

報告自伺服器啟動後已執行之交易的統計資料。

如需詳細資訊,請參閱<In-Memory OLTP (記憶體中最佳化)>。

適用於:SQL Server (SQL Server 2014 至目前版本)。

資料行名稱

資料類型

描述

total_count

bigint

已在記憶體中 OLTP 資料庫引擎中執行之交易的總數。

read_only_count

bigint

唯讀交易數目。

total_aborts

bigint

已透過使用者或系統中止之交易的總數。

user_aborts

bigint

由系統起始的中止數目。 例如,由於寫入衝突、驗證失敗或相依性失敗。

validation_failures

bigint

因為驗證失敗,交易中止的次數。

dependencies_taken

bigint

僅供內部使用。

dependencies_failed

bigint

因為其相依的交易中止,此交易中止的次數。

savepoint_create

bigint

所建立之儲存點的數目。 已針對每一個不可部分完成的區塊建立新儲存點。

savepoint_rollbacks

bigint

前一個儲存點的回復數目。

savepoint_refreshes

bigint

僅供內部使用。

log_bytes_written

bigint

寫入記憶體中 OLTP 記錄檔記錄的總位元組數。

log_IO_count

bigint

需要記錄 IO 之交易的總數。 僅考慮持久性資料表上的交易。

phantom_scans_started

bigint

僅供內部使用。

phatom_scans_retries

bigint

僅供內部使用。

phantom_rows_touched

bigint

僅供內部使用。

phantom_rows_expiring

bigint

僅供內部使用。

phantom_rows_expired

bigint

僅供內部使用。

phantom_rows_expired_removed

bigint

僅供內部使用。

scans_started

bigint

僅供內部使用。

scans_retried

bigint

僅供內部使用。

rows_returned

bigint

僅供內部使用。

rows_touched

bigint

僅供內部使用。

rows_expiring

bigint

僅供內部使用。

rows_expired

bigint

僅供內部使用。

rows_expired_removed

bigint

僅供內部使用。

rows_inserted

bigint

僅供內部使用。

rows_updated

bigint

僅供內部使用。

rows_deleted

bigint

僅供內部使用。

write_conflicts

bigint

僅供內部使用。

unique_constraint_violations

bigint

唯一條件約束違規的總數。

權限

需要伺服器的 VIEW SERVER STATE 權限。

請參閱

概念

記憶體最佳化的資料表動態管理檢視 (Transact-SQL)