set statistics io onset statistics time on
要执行的SQL语句
set statistics time offset statistics io off
上下两段话把SQL语句包起来,一起执行,就可以在查询分析器-消息 里面看到详细信息了,从而根据扫描次数进行进一步的优化
查看一段SQL语句执行时相关扫描次数的信息
原文:http://www.cnblogs.com/BigDBrother/p/5157077.html