Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test performance of the stored procedure in SQL Server Management Studio

Tags:

sql

sql-server

I want details time taken for the execution of the stored procedure. I have tried by cleaning DB cache, but getting difference in seconds resolution only.

Is there any build in method or tool of SQL server to get the detail statistics for the performance of the stored procedure?

like image 337
Yasin Avatar asked Oct 31 '25 20:10

Yasin


1 Answers

You can use Profiler to capture information (including duration) about SP and individual queries in it. You can also use Display An Actual Execution Plan to how your queries are executed.

  • To launch a profiler from SSMS go to Tools->"SQL Server Profiler"
  • To "Display An Actual Execution Plan" go to Query->"Display An Actual Execution Plan"
like image 194
Alex Avatar answered Nov 02 '25 09:11

Alex