How to find Stored Procedures execution time in SQL Server?
You can use Sql Server Profiler for this purposes it provides a lot of useful info along the each executed query and Stored procedure as well.
MSDN: SQL Profiler Data Columns
SQL Profiler displays the execution time for each event
An other straightforward way:
- DECLARE 2 datetime variables: start/end
- SET start = GETDATE()
- EXEC SP_NAME
- SET end = GETDATE()
- Execution time - difference between end and start
Assuming management studio or some other environment with an output pane you can;
SET STATISTICS TIME ON
EXEC SP1
EXEC SP2
...
SET STATISTICS TIME OFF