SELECT TOP 10
[Total Cost] = ROUND(avg_total_user_cost * avg_user_impact * (user_seeks + user_scans),0)
, avg_user_impact
, TableName = statement
, [EqualityUsage] = equality_columns
, [InequalityUsage] = inequality_columns
, [Include Cloumns] = included_columns
FROM sys.dm_db_missing_index_groups g
INNER JOIN sys.dm_db_missing_index_group_stats s
ON s.group_handle = g.index_group_handle
INNER JOIN sys.dm_db_missing_index_details d
ON d.index_handle = g.index_handle
ORDER BY [Total Cost] DESC;
相关文章
- mysql 语句其它及优化
- VMware三个版本workstation、server、esxi的区别
- General Ledger Useful SQL Scripts
- (转) java 通过 jdbc 链接 ms sql server 中出现 "no suitable driver for ..."
- java Mybatis框架动态SQL
- [20180918]文件格式与sql_id.txt
- yii phpexcel自己主动生成文件保存到server上
- Slow Server? This is the Flow Chart You're Looking For--reference
- sql server数据库操作
- SQL Server存储过程邮件发送以表格方式发送