Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to track which transactions are hung on a SQL server

Tags:

sql-server

i am developing a monitoring application which determines which transactions on the SQl server are hung. how can i know which applications are hung ? is there some particular API for this ?

like image 473
Chani Avatar asked Dec 10 '22 08:12

Chani


1 Answers

You should have a look at Transaction Related Dynamic Management Views and Functions (Transact-SQL), notably sys.dm_tran_active_transactions

like image 134
Simon Mourier Avatar answered Dec 29 '22 00:12

Simon Mourier