Why does SQL Server 2005 Dynamic Management View report a missing index when it is not?

后端 未结 3 1982
抹茶落季
抹茶落季 2021-01-14 17:55

I\'m using SQL Server 2005 and the the Dynamic Management View sys.dm_db_missing_index_details. It continues to tell me that Table1 really needs an index on Col

3条回答
  •  醉话见心
    2021-01-14 18:13

    If you have dropped & created the index, sp_update_stats shouldn't affect it (problem is not with statistics)

    Perhaps it's because of the DMV data is obsolete already Does Actual Execution Plan suggest the Missing Index in SSMS as well?

    From Books Online

    Information returned by sys.dm_db_missing_index_details is updated when a query is optimized by the query optimizer, and is not persisted. Missing index information is kept only until SQL Server is restarted. Database administrators should periodically make backup copies of the missing index information if they want to keep it after server recycling.

    To determine which missing index groups a particular missing index is part of, you can query the sys.dm_db_missing_index_groups dynamic management view by equijoining it with sys.dm_db_missing_index_details based on the index_handle column.

提交回复
热议问题