我运行这个查询
SELECT * FROM [dbo].[Bets]
WHERE [BetAmount] =1000
然后我检查
SELECT * FROM sys.dm_db_missing_index_details
最后一个的结果是
然后我使用Tuning Advisor
and 并得到以下结果,它建议我创建以下索引-
设置 ANSI_PADDING ON
CREATE NONCLUSTERED INDEX [_dta_index_Bets_5_277576027__K4_1_2_3_5_6] ON [dbo].[Bets]
(
[BetAmount] ASC
)
INCLUDE ( [BetID],
[PlayerID],
[GameID],
[BetDate],
[BetResults]) WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ON [PRIMARY]
我的问题是顾问和sys.dm
生成相同的结果吗?