预读、逻辑读、物理读的解释
预读:sql server查询的时候会在内存中生成查询计划,但在同时会去硬盘上取估计的数据放入缓存
逻辑读:从缓存中读取数据
物理读:当缓存中也没有的时候,就回去硬盘读
查看语句执行情况
set statistics profile on
set statistics io on
set statistics time on
go
<这里写上你的语句...>
go
set statistics profile off
set statistics io off
set statistics time off
For example:
SET STATISTICS io ON
SET STATISTICS time ON
go
SELECT * FROM TBL_MeetingRoomOrder
go
SET STATISTICS profile OFF
SET STATISTICS io OFF
SET STATISTICS time OFF