使用set statistics on 来检查sql tuning的结果

来源:互联网 发布:重庆cnc编程招聘 编辑:程序博客网 时间:2024/05/01 23:33

 

 

 

在SQL Server2005/2008中可以使用一下四个命令来调优sql语句以及检查调优的结果

 

set

 

 statistics time on

set

 

 statistics IO on

set

 

 statistics profile on

set

 

 statistics xml on