Is there a way in SQL profiler to filter by INSERT statements?

前端 未结 2 621
梦毁少年i
梦毁少年i 2021-02-19 08:25

I am trying to identify SQL INSERTS that occur when a record is viewed from a Windows application. In SQL Profiler I have a long list of stored procedures that fire when the rec

2条回答
  •  灰色年华
    2021-02-19 09:03

    Try watching the events SP:StmtStarting and SQL:StmtStarting, include column TextData, and set a Column Filter for TextData with the Like set to %insert%.

    This may include some false positives like references to the "inserted" table in a trigger, etc.

提交回复
热议问题