Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of primary key in index
Message
De
19/03/2014 11:16:13
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01596859
Message ID:
01596875
Vues:
31
>Do you mean if you don't specify the index hint? SQL Server Optimizer is a complex product and how exactly does it decide what to use may not be immediately clear. So, I'd say it's possible.

I have seen that at several occasions that such join will never use the primary key of the table. Mostly because I think the primary key is part of the output and it would choose another index instead for locating the records.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform