Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 query to know the execution time of stored procs

Author  Topic 

raaj
Posting Yak Master

129 Posts

Posted - 2012-06-27 : 19:25:12
Hi Guys,

I am having a SQL SERVER 2008R2 Job. This job basically runs 8 stored procedures and is run every 30 mins on weekdays. This job takes around 30-40 secs for each run.

Now, I just wanted to know....
Is there a way that i could know the execution time of each stored procedure? i.e I just wanted to know How much time does each Stored Proc take to execute?

Thanks,
Raaj.

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2012-06-27 : 23:59:29
You could capture the runtime infomation using a SQL Profiler trace.



CODO ERGO SUM
Go to Top of Page
   

- Advertisement -