//sqlserver查询分析
set Statistics io on
set Statistics time on
set statistics time off
set Statistics io on
set Statistics time on
set Statistics profile on
inner join dbo.RoleUser ru
on UI.Name = ru.UserName
set statistics time off
set Statistics profile off
STATISTICS PROFILE
STATISTICS PROFILE 为 ON 时,执行的各个查询都返回其常规结果集,后面跟一个附加结果集,显示查询执行的配置文件。
附加结果集包含查询的 SHOWPLAN_ALL 列以及下面的附加列。
列名 | 说明 |
---|---|
Rows |
各运算符生成的实际行数 |
Executes |
运算符执行的次数 |