SET STATISTICS TIME ON.
Just consider following example
Select * from TableName
-- Or Any Query
SET STATISTICS TIME OFF
Then it will show following output
Code
SQL Server parse and compile time:
CPU time = 31 ms, elapsed time = 141 ms.By reading this blog you will know how to find out SQL Server parse and compile time of a SQL statement.
SET STATISTICS TIME ON.
Just consider following example
Select * from TableName
-- Or Any Query
SET STATISTICS TIME OFF
Then it will show following output
SQL Server parse and compile time:
CPU time = 31 ms, elapsed time = 141 ms.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SQL ServerBasics of SQL ServerDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.