报告内存中 OLTP 数据库引擎中的活动事务。
有关详细信息,请参阅内存中 OLTP(内存中优化)。
适用范围:SQL Server(SQL Server 2014 至当前版本)。 |
列名 |
数据类型 |
说明 |
|---|---|---|
xtp_transaction_id |
bigint |
此事务在 XTP 事务管理器中的内部 ID。 |
transaction_id |
bigint |
事务 ID。 与其他事务相关 DMV 中的事务 ID(如 sys.dm_tran_active_transactions)联接。 0 表示仅限 XTP 的事务,如本机编译存储过程启动的事务。 |
session_id |
smallint |
正在执行此事务的会话的会话标识符。 与 sys.dm_exec_sessions 联接。 |
begin_tsn |
bigint |
事务的起始事务序列号。 |
end_tsn |
bigint |
事务的结束事务序列号。 |
state |
int |
事务的状态:
|
state_desc |
nvarchar |
事务状态的说明。 |
result |
int |
此事务的结果。 下面是可能的值。 0 - IN PROGRESS 1 - SUCCESS 2 - ERROR 3 - COMMIT DEPENDENCY 4 - VALIDATION FAILED (RR) 5 - VALIDATION FAILED (SR) 6 - ROLLBACK |
result_desc |
nvarchar |
此事务的结果。 下面是可能的值。 IN PROGRESS 成功 ERROR COMMIT DEPENDENCY VALIDATION FAILED (RR) VALIDATION FAILED (SR) ROLLBACK |
last_error |
int |
仅限内部使用 |
is_speculative |
bit |
仅限内部使用 |
is_prepared |
bit |
仅限内部使用 |
is_delayed_durability |
bit |
仅限内部使用 |
memory_address |
varbinary |
仅限内部使用 |
database_address |
varbinary |
仅限内部使用 |
thread_id |
int |
仅限内部使用 |
read_set_row_count |
int |
仅限内部使用 |
write_set_row_count |
int |
仅限内部使用 |
scan_set_count |
int |
仅限内部使用 |
savepoint_garbage_count |
int |
仅限内部使用 |
log_bytes_required |
bigint |
仅限内部使用 |
count_of_allocations |
int |
仅限内部使用 |
allocated_bytes |
int |
仅限内部使用 |
reserved_bytes |
int |
仅限内部使用 |
commit_dependency_count |
int |
仅限内部使用 |
commit_dependency_total_attempt_count |
int |
仅限内部使用 |
scan_area |
int |
仅限内部使用 |
scan_area_desc |
nvarchar |
仅限内部使用 |
scan_location |
int |
仅限内部使用。 |
dependent_1_address |
varbinary(8) |
仅限内部使用 |
dependent_2_address |
varbinary(8) |
仅限内部使用 |
dependent_3_address |
varbinary(8) |
仅限内部使用 |
dependent_4_address |
varbinary(8) |
仅限内部使用 |
dependent_5_address |
varbinary(8) |
仅限内部使用 |
dependent_6_address |
varbinary(8) |
仅限内部使用 |
dependent_7_address |
varbinary(8) |
仅限内部使用 |
dependent_8_address |
varbinary(8) |
仅限内部使用 |
权限
要求对服务器具有 VIEW DATABASE STATE 权限。