DBCC DROPCLEANBUFFERS --清除缓冲区 DBCC FREEPROCCACHE --删除计划高速缓存中的元素 SET STATISTICS io ON SET STATISTICS time ON Go ---你要测试的sql语句 SELECT a.RecTime,a.PID,a.TagID,b.TagName,a.PV,c.CompanyName,d.Name AS DataType,b.Position,e.Name , f.PName,f.DeviceCode,a.Ala…