sql SET STATISTICS IO.sql

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql SET STATISTICS IO.sql相关的知识,希望对你有一定的参考价值。

-- turns on statistics in the Messages tab in SQL Server Management Studio, allowing you to see how many reads the query completes. This allows you to see the efficiency of a particular query. Logical reads is the number you want to look for.
SET STATISTICS IO ON;

-- you can also select the Include Actual Execution Plan button (Ctrl + M) to add another tab for Execution Plan, which gives you information as to how the query is completed by the engine.

以上是关于sql SET STATISTICS IO.sql的主要内容,如果未能解决你的问题,请参考以下文章

sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME---解释比较详细

SQL Server2008优化之SET STATISTICS开关

SQL Server读懂语句运行的统计信息 SET STATISTICS TIME IO PROFILE ON

SQL Server 数据库性能优化

是否有替代 SET STATISTICS TIME 也显示语句的替代方法?

2014-06-06-sql-for-statistics