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 filter to just reporting these type of statements to the profiler? Thanks!
trc files are safe to delete. . trc files generated by SQL Server in process of saving events to a physical file without using the Profiler client tool.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With