Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SSMS recommends index but do not use it
Message
 
À
17/06/2015 17:05:23
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01621109
Message ID:
01621116
Vues:
43
>SSMS execution plan recommends the creation of an index in regards to my query. I create the index. I run the execution plan again and it uses another index now.
>
>Anyone can explain this?

It's the computer equivalent of decorating a room - "I think the couch would look great against that wall", you move couch, "Nope, I don't like it there."

Basically it thinks the index will help based on the query analysis it does, but once you create it (and it can actually use it for analysis), it decides some other option is better.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform