Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performance needed on Like
Message
De
05/08/2014 16:33:20
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Performance needed on Like
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01605204
Message ID:
01605204
Vues:
69
If I have a search like this:
DECLARE @Title Varchar(20)

SET @Title='00055%'

SELECT Client.FirstName FROM Client WHERE Client.Title LIKE @Title
...this will not used the index Client.Title. If I change LIKE for =, it will. Anyone has found a way to avoid a lookup, which is what the execution plan is showing, in such a search? I mean, everything which starts by should be optimized. But, it does not seem to be case.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform