Do Disabled Indexes Affect Missing Index Recommendations?
I'm so glad you asked! Let's take a look. Open up the Stack Overflow database, turn on actual execution plans, and run a query that will cause SQL Server to beg and plead for an index:
[crayon-6a65210a651cb572384894/]
And we get a missing index recommendation in the plan:
Now create the index, and try the query again:
[crayon-6a65210a651d6735868194/]
Oh, don't act like you haven't done that. And sure enough, SQL Server uses the index: