可通过查询dm_db_index_usage_stats表取得对应表索引被使用次数。
列名
数据类型
说明
database_id
smallint
在其中定义表或视图的数据库的 ID。
object_id
int
为其定义索引的表或视图的 ID。
index_id
int
索引的 ID。
user_seeks
bigint
通过用户查询执行的搜索次数。
user_scans
bigint
通过用户查询执行的扫描次数。
user_lookups
bigint
由用户查询执行的书签查找次数。
user_updates
bigint
通过用户查询执行的更新次数。
last_user_seek
datetime
用户上次执行搜索的时间。
last_user_scan
datetime
用户上次执行扫描的时间。
last_user_lookup
datetime
用户上次执行查找的时间。
last_user_update
datetime
用户上次执行更新的时间。
system_seeks
bigint
通过系统查询执行的搜索次数。
system_scans
bigint
通过系统查询执行的扫描次数。
system_lookups
bigint
通过系统查询执行的查找次数。
system_updates
bigint
通过系统查询执行的更新次数。
last_system_seek
datetime
系统上次执行搜索的时间。
last_system_scan
datetime
系统上次执行扫描的时间。
last_system_lookup
datetime
系统上次执行查找的时间。
last_system_update
datetime
系统上次执行更新的时间。
详见:https://msdn.microsoft.com/zh-cn/library/ms188755.aspx