Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right index but not taken
Message
De
15/01/2014 14:47:37
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01591957
Message ID:
01591967
Vues:
33
>Do you have a problem with optimizer picking up that plan? How did you come up with the alternative index - was it suggested as missing index when you run this query through DTA?

The execution plan clearly shows a Key Lookup (Clustered) with the object being used as the primary key and the Output list to be the two fields I need. So, the primary key is the clustered index. That one cannot have included fields. At first, I thought I would simply create the related index so to avoid a Key Lookup and move into an Index Seek for example or something better. But, when it was built, the execution plan still does not want to pick it up. I have created a new index on the primary key field with the two suggested included fields.

I am using SSMS and the related execution plan option.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform