sys.dm_xtp_transaction_stats (Transact-SQL)

適用於:SQL ServerAzure SQL DatabaseAzure SQL 受控執行個體

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

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

資料行名稱 資料類型 描述
total_count bigint 在記憶體內部 OLTP 資料庫引擎中執行的交易總數。
read_only_count bigint 唯讀交易的數目。
total_aborts bigint 透過使用者或系統中止的交易總數。
system_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 許可權。

SQL Server 2022 和更新版本的權限

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

另請參閱

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