使用Set Statistics Time On
如
- SET STATISTICS TIME ON
- select COUNT(1) from files
返回结果:
- SQL Server parse and compile time:
- CPU time = 0 ms, elapsed time = 0 ms.
- SQL Server Execution Times:
- CPU time = 0 ms, elapsed time = 0 ms.
- (1 row(s) affected)
- SQL Server Execution Times:
- CPU time = 16 ms, elapsed time = 41 ms.