我成功地只能看到transaction isolation level
事件在Audit Login
事件。还有其他方法可以监控吗transaction isolation level
使用 SQL Profiler 或其他工具进行更改?我问的原因是因为 SQL Profiler 似乎无法以正确的顺序输出事件,或者它会跳过事件,因为在设置IsolationLevel
to Serializable
在我的应用程序中它仍然显示transaction isolation level read committed
.
Example Audit Login
在 SQL 探查器中:
-- network protocol: Named Pipes
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions off
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level serializable
恐怕没有一个。
即使有一个,您希望看到在联接中查询多个表并且一个或多个表具有未提交读取的 NOLOCK 的情况吗?
探查器在语句级别而不是表级别报告查询,因此您将拥有混合的事务隔离级别(探查器和扩展事件也是如此)
您能做的最好的事情就是手动解析语句开始(批处理和过程)并查找设置的事务隔离级别。
ed
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)