Check status of active transactions

  • Comments posted to this topic are about the item Check status of active transactions

  • Msg 102, Level 15, State 1, Line 33

    Incorrect syntax near 'dec'.:hehe:

  • There is a incorrect join condition on the first join as follows;

    JOIN sys.dm_tran_session_transactions [tst]

    ON tat.transaction_id = tat.transaction_id

    That should be tat.transaction_id = tst.transaction_id

    Hope this helps.

    David

    @SQLTentmaker

    “He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot

  • Just right. Thanks as lot.

    Maybe also to add

    USE master

    GO

    first, as your current database might not be in the required compatibility mode 😉

    -

    Regards

    Flemming Hansen

  • working on your posted query and works fine .

    Just one que is that in IsUserTransaction column whats mean for user transaction ? 0 or 1?

  • Thanks for the script Harsha.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply