Quantcast
Channel: CodeFari
Viewing all articles
Browse latest Browse all 265

How to identify open transactions in SQL Server

$
0
0

There are many way to find open transaction which are not COMMIT or ROLBACK.

Below script may help you to find out open TRANSACTION in SQL Server
1. Using  SYS.SYSPROCESSES 
SELECT*FROMSYS.SYSPROCESSESWHEREOPEN_TRAN= 1

2.  Using  SYS.DM_TRAN_SESSION_TRANSACTIONS
SELECT*FROMSYS.DM_TRAN_SESSION_TRANSACTIONS

Viewing all articles
Browse latest Browse all 265

Trending Articles