First up I start with the SQL Server Profiler with a slightly changed version of the "SP_Counts" template. After my modifications [font="Arial Black"]I have based the template on the "SP:Starting" event [/font]with the following columns:
ObjectName (name of the Stored Procedure)
[font="Arial Black"]Duration [/font](not really needed, I'll explain the purpose later)
DatabaseName (not really needed since we'll filter on the database anyway)
SPID (mandatory, I don't want it but Profiler obviously need it)
StartTime (same as Duration)
[font="Arial Black"]EndTime [/font](same as Duration)
Hmmmm.... I'm curious as to how you got "Duration" and "EndTime" to work on the "SP:Starting" event. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.