Yes, but this only allows me to group on class / type of statement.
I would like to group simular statements
select * from table1 where id = 1 order by id
select * from table1 where id = 4 order by id
is in my perspective same statement, I need some statement that can "mask" criteria..
I can take a substring and cut all from where, but I need to know coulmns are used, in order to validate indexes, and also if coulmns are not same, it might be an other action in application
i'm already thinking the trace is the wrong tool for for validating indexes. the WHERE statement tells you what columns are used to find the index,and any SELECT * is going to bring in the clustered index to get all columns anyway, i'd think.
nothing int he trace will tell you but not what index was used, or that is potentially missing.
instead of a trace, you really need to look at the dynamic management views instead.
it depends on what you are really trying to do;
Are you looking for poorly performing queries?
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!