select *
from sys.dm_tran_session_transactions
where is_user_transaction=1
from sys.dm_tran_session_transactions
where is_user_transaction=1
select * from sys.dm_exec_connections c
cross apply sys.dm_exec_sql_text(c.most_recent_sql_Handle) s
where session_id=158
版权声明:本文为miqi770原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。