在SQL Server中统计SQL语句的执行时间

   1:  SET STATISTICS io ON
   2:  SET STATISTICS time ON
   3:  go
   4:   
   5:  --这里写你的SQL语句
   6:   
   7:  go
   8:  SET STATISTICS profile OFF
   9:  SET STATISTICS io OFF
  10:  SET STATISTICS time OFF
posted @ 2012-12-12 09:54  ChaoSimple  阅读(1097)  评论(0编辑  收藏  举报