Click here to Skip to main content
Click here to Skip to main content

How to get the details of Open Transaction in SQL Server

By , 2 Sep 2010
 
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

tarun_j200
India India
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalnicememberbeffes10 Nov '10 - 0:34 
nice
GeneralGood Tip..........memberVivek Johari6 Sep '10 - 20:42 
Good Tip..........

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 2 Sep 2010
Article Copyright 2010 by tarun_j200
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid