Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Missing index DMV

$
0
0
I tried to use missing indexes DMV (sys.dm_db_missing_index_group_stats, sys.dm_db_missing_index_groups and sys.dm_db_missing_index_details etc) to get suggested missing indexes. I got two suggested missing indexes like these: CREATE INDEX Misssing_Index_1 ON table (column1, column2) INCLUDE (column3) and  CREATE INDEX Misssing_Index_2 ON table (column1, column2) INCLUDE (column3, column4). I do need to set up index like this based on my system need. My question is - should I just create the Missing_Index_2 as it includes column3? Why does DMV recommend two indexes if so? Thanks.

Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>