How to get SQL Profiler to monitor trigger execution

只谈情不闲聊 提交于 2019-12-03 18:48:41

问题


I have a trace setup for SQL Server Profiler to monitor SQL that is executed on a database. I recently discovered that trigger execution is not included in the trace. After looking through available events for a trace, I do not see any that look like they would include trigger execution. Does anyone know how to setup a trace to monitor the execution of triggers?


回答1:


Stored procedures: - SP:StmtStarting - SP:StmtCompleted




回答2:


In SQL Server Profiler 2008, when starting/configuring the trace, go to the "Events Selection" tab, click on the "Show all events" checkbox, and then in the list under the Stored Procedures section select the SP:StmtStarting and SP:StmtCompleted events to be included in the trace.



来源:https://stackoverflow.com/questions/159526/how-to-get-sql-profiler-to-monitor-trigger-execution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!