Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The ASP.Net application I'm maintaining at the moment has a lot of activity in the database when ever a postback occurs. For the example I'm currently looking at, Profiler shows a mass of activity just to refresh the UI but I know its also updating a couple of tables.

What would be the best trace filter to only show the sprocs/statements that are either inserting, updating, deleting?

Is there a way to just show the table that are I/U/D (but I doubt this is possible)?

Thanks for your help on this.

share|improve this question
up vote 5 down vote accepted

Try a trace on SP:Completed and RPC:Completed with column filters on TextData for:

  • % insert %
  • % delete %
  • % update %

Might get the odd spurious result but it'll narrow the field. Add SQL:BatchCompleted if you have a mix of procs and statements.

share|improve this answer
Slight change - I removed the space between the first wildcard character and the keyword. – Chris Moutray Oct 4 '11 at 14:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.