|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Number and duration of execution for stored procedures
Hello,
Will be very usefull for me if I know what are the stored procedures more often use in a database and how long is the execution time.Can someone help me in putting a trigger, or getting this values from tempdb maybe ? I know profiler (RPC completed I guess) , but I can't understand duration - sometimes, if that are ms, I think it's not best values. A trigger well put i think will help me better, cause I can make after that an alaysis for a week time and take propper decision for code optimization. I put in some procedures a code with getdate at start, enddate at the end, procedure id, etc, but there are a lot of procedures. Thank you CM
I'd run SQL Server Profiler to group by Duration event to see how long it is running Show quoteHide quote "CM" <C*@discussions.microsoft.com> wrote in message news:9C916A15-895F-4F0C-B1DD-D44F41B29BAC@microsoft.com... > Hello, > > Will be very usefull for me if I know what are the stored procedures more > often use in a database and how long is the execution time.Can someone > help > me in putting a trigger, or getting this values from tempdb maybe ? I know > profiler (RPC completed I guess) , but I can't understand duration - > sometimes, if that are ms, I think it's not best values. A trigger well > put i > think will help me better, cause I can make after that an alaysis for a > week > time and take propper decision for code optimization. I put in some > procedures a code with getdate at start, enddate at the end, procedure id, > etc, but there are a lot of procedures. > Thank you
Other interesting topics
can't update column if there are autocomputed columns?
DATEDIFF and time format in Sql Server is my sql server 2005 installed correctly? Plans in Cache DTS Export to Excel Where is SP2a Estimating Table Sizes dumptrdate column gone in sql server 2000? Recompiles where EventSubClass = 4 change a value in a field |
|||||||||||||||||||||||