Tracked this one down, now I'm sharing:
select name, count(*)
from dbo.TraceTable20091214 tr join sys.trace_events
on trace_event_id = eventclass
group by name
order by 2 desc
sys.trace_events picks up the name of the event_id, which is what gets stored in the profiler trace log.
enjoy!
Tuesday, December 15, 2009
Subscribe to:
Posts (Atom)