May 2019
Intermediate to advanced
484 pages
11h 23m
English
QueryTimeStats* can expand to show additional information on time metrics for a given execution. The detailed elements in QueryTimeStats include CpuTime* and ElapsedTime* for the overall query. Both are measured in milliseconds and can replace the need to execute the query with SET STATISTICS TIME separately.
Here is the detail for this property for the example query:

For queries that call User-Defined Functions (UDFs), the UdfCpuTime* and UdfElapsedTime* elements are also included under QueryTimeStats. These are available starting with SQL Server 2014 Service Pack 3, SQL Server 2016 Service Pack 2, and SQL Server 2017 Cumulative ...
Read now
Unlock full access