SQL Server Profiler - How to filter trace to only display TSQL containing a DELETE statement?

后端 未结 1 1115
情话喂你
情话喂你 2020-12-29 11:09

I have a SQL Trace setup to monitor all TSQL being issued to a single database. However I only care about \'DELETE\' TSQL statements being issued. Is there any way I can fil

1条回答
  •  春和景丽
    2020-12-29 11:24

    When setting up your trace, go to event selection and select only TSQL->Batch completed. Now click the column filters button and choose TextData -> Like and write %delete%. That should do it.

    EDIT: Added percent signs (%) around delete because they are needed to make it work.

    0 讨论(0)
提交回复
热议问题