1. "SET STATISTICS TIME ON"/"SET STATISTICS TIME OFF "
用于统计SQL命令执行的时间,如:
2. "SET STATISTICS IO ON" / "SET STATISTICS IO OFF"
用于统计IO情况,如:
3. "SET STATISTICS PROFILE ON" / "SET STATISTICS PROFILE OFF"
用于分解一个SQL命令的详细执行计划,便于深入了解SQLServer底层的执行过程,提供优化方向