Sdílet prostřednictvím


sys.dm_db_xtp_transactions (Transact-SQL)

platí pro: SQL Server Azure SQL DatabaseAzure SQL Managed Instance

Hlásí aktivní transakce v databázovém enginu In-Memory OLTP.

Další informace najdete v tématu In-Memory OLTP (optimalizaceIn-Memory).

Název sloupce Datový typ Description
node_id smallint ID uzlu
xtp_transaction_id bigint Interní ID této transakce v XTP transakčním manažeru
transaction_id bigint ID transakce. Připojuje se k dalším transaction_id transakčním DMV, jako je sys.dm_tran_active_transactions.

0 pro transakce pouze XTP, například transakce zahájené nativně kompilovanými uloženými procedurami.
session_id smallint Relace session_id , která tuto transakci vykonává. Spojuje se s sys.dm_exec_sessions
begin_tsn bigint Začněte sériové číslo transakce
end_tsn bigint Konec sériového čísla transakce
state int Stav transakce:

0 -AKTIVNÍ
1 -SPÁCHAL
2 -PŘERUŠENA
3 -OVĚŘOVÁNÍ
state_desc nvarchar Popis stavu transakce
result int Výsledek této transakce. Následují možné hodnoty.

0 - PROBÍHÁ
1 -ÚSPĚCH
2 -CHYBA
3 - ZÁVISLOST COMMITU
4 - VALIDACE NEÚSPĚŠNÁ (RR)
5 - VALIDACE NEÚSPĚŠNÁ (SR)
6 -REDUKCE
result_desc nvarchar Výsledek této transakce. Následují možné hodnoty.

IN PROGRESS
SUCCESS
ERROR
COMMIT DEPENDENCY
VALIDATION FAILED (RR)
VALIDATION FAILED (SR)
ROLLBACK
xtp_parent_transaction_node_id smallint Pouze interní použití
xtp_parent_transaction_id bigint Pouze interní použití
last_error int Pouze interní použití
is_speculative bit Pouze interní použití
is_prepared bit Pouze interní použití
is_delayed_durability bit Pouze interní použití
memory_address varbinary Pouze interní použití
database_address varbinary Pouze interní použití
thread_id int Pouze interní použití
read_set_row_count int Pouze interní použití
write_set_row_count int Pouze interní použití
scan_set_count int Pouze interní použití
savepoint_garbage_count int Pouze interní použití
log_bytes_required bigint Pouze interní použití
count_of_allocations int Pouze interní použití
allocated_bytes int Pouze interní použití
reserved_bytes int Pouze interní použití
commit_dependency_count int Pouze interní použití
commit_dependency_total_attempt_count int Pouze interní použití
scan_area int Pouze interní použití
scan_area_desc nvarchar Pouze interní použití
scan_location int Pouze interní použití
dependent_1_address varbinary(8) Pouze interní použití
dependent_2_address varbinary(8) Pouze interní použití
dependent_3_address varbinary(8) Pouze interní použití
dependent_4_address varbinary(8) Pouze interní použití
dependent_5_address varbinary(8) Pouze interní použití
dependent_6_address varbinary(8) Pouze interní použití
dependent_7_address varbinary(8) Pouze interní použití
dependent_8_address varbinary(8) Pouze interní použití

Povolení

Pro SQL Server 2019 (15.x) a předchozí verze vyžaduje oprávnění VIEW DATABASE STATE pro databázi.

Pro SQL Server 2022 (16.x) a novější verze vyžaduje oprávnění VIEW DATABASE PERFORMANCE STATE pro databázi.