Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forcing a SQL to not use an index
Message
De
03/09/2014 15:44:59
 
 
À
03/09/2014 15:35:19
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01606992
Message ID:
01606999
Vues:
36
>I don't know if this will help.....and you might already know this....
>
>
>SELECT * from Table  with (index ( [ForceToUseThisIndex]))
>
>
>That's static...it's not going to conditionally use it....so not sure if that will help

That works. However, to see what exactly it would recommand so to be able to grab it by itself, the only way I have found so far is to remove those related indexes it takes in the execution plan until it starts showing in green the related index that would fit. Then, I can recreate the individual index. After that, it is just a question of hoping that would remain. So far, it usually works.
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