Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance needed on Like
Message
From
05/08/2014 16:33:20
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Performance needed on Like
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01605204
Message ID:
01605204
Views:
67
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
Next
Reply
Map
View

Click here to load this message in the networking platform