怎样跟踪查询的物理读数与逻辑读数

SQL code

例如:

我要跟踪一条sql的
逻辑读取:24319
物理读取:3
预读:24368
CPU时间:951毫秒
实耗时间:23935毫秒
估计的子树开销:19.1699

怎样跟踪,查询到上面的数据后又怎样分析,怎样全面分析这条sql的快慢!



作者: hncelfhv   发布时间: 2011-06-16

SQL code
set statistics io on
--你的语句
set statistics io off

set statustucs time on
--你的语句

set statustucs time off

作者: fredrickhu   发布时间: 2011-06-16

引用 1 楼 fredrickhu 的回复:
SQL code
set statistics io on
--你的语句
set statistics io off

set statustucs time on
--你的语句

set statustucs time off



怎样分析sql

作者: hncelfhv   发布时间: 2011-06-16

估计的子树开销:19.1699
这个需要用 SQL PROFILTER来跟踪

作者: fredrickhu   发布时间: 2011-06-16

引用 3 楼 fredrickhu 的回复:
估计的子树开销:19.1699
这个需要用 SQL PROFILTER来跟踪


步骤?

作者: hncelfhv   发布时间: 2011-06-16