SQL Server Solutions & Information
Search This Blog
Wednesday, September 1, 2010
Find the open transaction details in Sql Server
The below query can be used to get the details of OPEN TRANSACTION:
SELECT DB_NAME(dbid) AS DBNAME, (SELECT text FROM sys.dm_exec_sql_text(sql_handle)) AS SQLSTATEMENT FROM master..sysprocesses WHERE open_tran > 0
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)