sql server 查询db事务没有提交的情况

select *
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版权协议,转载请附上原文出处链接和本声明。