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

后端 未结 3 1940
抹茶落季
抹茶落季 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.

    0 讨论(0)
  • 2021-01-14 18:24

    Though this is quite an old post, I found a useful article on this here http://www.simple-talk.com/sql/database-administration/fine-tuning-your-database-design-in-sql-2005/ which references a good Microsoft article on the limitations of DMVs http://msdn.microsoft.com/en-us/library/ms345485.aspx

    0 讨论(0)
  • 2021-01-14 18:35

    Random thought: What if one of the columns is better declared "DESC"?

    This is useful for ORDER BY clauses and I've seen logical IO reduce by half.

    0 讨论(0)
提交回复
热议问题