查询从未使用的索引
程序员文章站
2024-04-03 10:18:22
...
查询从未使用的索引 无 select object_name(object_id),* sys.dm_db_index_usage_state where user_seeks=0 and user_scans=0 and user_lookups=0 and system_seeks=0 and system_scans=0 and system_lookups=0 and object_name(object_id) is not null
查询从未使用的索引select object_name(object_id),* sys.dm_db_index_usage_state where user_seeks=0 and user_scans=0 and user_lookups=0 and system_seeks=0 and system_scans=0 and system_lookups=0 and object_name(object_id) is not null