ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> SqlServer >> 【转】SQL SERVER 查看SQL语句IO,时间,索引消耗

【转】SQL SERVER 查看SQL语句IO,时间,索引消耗

来源:网络整理     时间:2015-02-17     关键词:

本篇文章主要介绍了"【转】SQL SERVER 查看SQL语句IO,时间,索引消耗",主要涉及到方面的内容,对于SqlServer感兴趣的同学可以参考一下: 1.查看SQL语句IO消耗set statistics io on select * from dbo.jx_order where order_tim...

1.查看SQL语句IO消耗set statistics io on 
    select * from dbo.jx_order where order_time>'2011-04-12 12:49:57.580' 
set statistics io off 
  2.查看SQL语句时间消耗set statistics time on 
     select * from dbo.jx_order where order_time>'2011-04-12 12:49:57.580' 
set statistics time off


  3.查看SQL语句索引消耗set statistics profile on 
       select * from dbo.jx_order
       where order_time>'2011-04-12 12:49:57.580' 
set statistics profile off
 此上图中的红框可以看到此查询走了聚集索引扫描转:http://blog.163.com/ji_1006/blog/static/106123412013643451567/

以上就介绍了【转】SQL SERVER 查看SQL语句IO,时间,索引消耗,包括了方面的内容,希望对SqlServer有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_113828.html

相关图片

相关文章