Using sql profiler, we trace all slow queries (filter on duration/reads) to see where we can optimise. Events used:
- RPC:Completed
- SQL:BatchCompleted
Filter on Duration.
If I add the event ShowPlan XML, then I cannot filter on the duration of the underlying query, creating a huge load as hundreds/thousands of queries arrive each second
How to only capture the execution plan for the entries that match the filter duration/reads of the captured queries from the other events?