SQL Server - SQL open transactions and how to find
Which SQL open transactions are causing a performance issue?
SELECT SP.SPID,[TEXT] as SQLcode FROM SYS.SYSPROCESSES SP
CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SP.[SQL_HANDLE])AS DEST WHERE OPEN_TRAN=1
Which SQL open transactions are causing a performance issue?
Method 1 - DBCC OPENTRAN() and DBCC INPUTBUFFER()
Method 2 – Check for Open Transactions in SYS.SYSPROCESSES
Use this SQL Statement , using SYS.SYSPROCESSES and CROSS APPLY to SYS.DM_EXEC_SQL_TEXTSELECT SP.SPID,[TEXT] as SQLcode FROM SYS.SYSPROCESSES SP
CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SP.[SQL_HANDLE])AS DEST WHERE OPEN_TRAN=1
No comments:
Post a Comment