What are the most accepted ways to time your queries, whether they are ad hoc or stored procedures?
Is it more accurate to use SQL Profiler than SET STATISTICS TIME ON?
|
What are the most accepted ways to time your queries, whether they are ad hoc or stored procedures? Is it more accurate to use SQL Profiler than |
||||
|
|
|
In either case you are getting the run time from the server, so you should get the same values from either. |
|||||||
|
|
Profiler is easier to understand (all in one line) and will capture hidden IO, CPU etc in UDFs (scalar and multi-statement TVFs)
From SO:
And no doubt some folk will disagree with me, so here is Adam Machanic on the subject too |
|||||||||
|