How to look a single SQL Server query takes how much cpu time for completation -


how single sql server query takes how cpu time completion

when run query via sql server management studio want see how cpu time did query consumed

it pretty low need see comparing different query loads

and greater if possible run query 1000 times , see total consumed time

thank you


ok full answer

set statistics time on

execute query

set statistics time off

and after have messages window not results window

before run query, execute command in same ssms window.

set statistics time on 

note in multi-processor environment, cpu time reported may exceed elapsed time if parallel processing occurs when executing query.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -