SQL SERVER 查看SQL语句IO,时间,索引消耗
2017-03-15 10:14
253 查看
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/
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,时间,索引消耗
- SQL SERVER 查看SQL语句IO,时间,索引消耗
- SQL Server如何查看SQL语句的执行时间 .
- 通过SQL Server的扩展事件来跟踪SQL语句在运行时,时间都消耗到哪儿了?
- 再linux下查看SQL语句执行消耗的时间
- SQL Server如何查看SQL语句的执行时间
- SQL 语句执行时间及IO情况查看
- [转]如何在sql2005里简单查看sql语句的执行时间和IO读写
- 查看SQL语句在SQL Server上的执行时间
- 查看SQL语句在SQL Server上的执行时间
- 通过SQL Server的扩展事件来跟踪SQL语句在运行时,时间都消耗到哪儿了?
- 查看SQL语句执行时间、IO开销
- SQL Server如何查看SQL语句的执行时间 (zz)
- SQL Server 查看 SQL 语句执行时间
- 如何查看django执行的sql语句及消耗时间
- 查看SQL语句在SQL Server上的执行时间
- 查看django执行的sql语句及消耗时间的两种方法
- SQL Server如何查看SQL语句的执行时间
- SQL Server如何查看SQL语句的执行时间
- SQL Server如何查看SQL语句的执行时间