摘要:
1.使用SET STATISTICS TIME ON--首先清除缓存DBCCDROPCLEANBUFFERS;DBCCFREEPROCCACHE;--运行SETSTATISTICSTIMEON;SELECTorderid,custid,empid,shipperid,orderdate,fillerFROMdbo.OrdersWHEREorderdate>='20060101'ANDorderdate<'20060201';SETSTATISTICSTIMEOFF;GO您将会得到类似的消息:SQLServer分析和编译时间:CPU时间=15毫秒,占用 阅读全文