在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
原文地址:https://www.cnblogs.com/chaosimple/p/2814084.html