Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last four characters of a field
Message
From
17/10/2012 16:42:35
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01555203
Message ID:
01555216
Views:
35
>non-sargable means it can not utilize index on the field even if it exists. Say, if you have Date column in your table and you have an index on it and you want to get records for today this expression will be non-sargable
>
>where datediff(day, myColum, CURRENT_TIMESTAMP) = 0
>
>Any expression on the field are non-sargable (except for a simple CAST to date).
>
>Also, if the search condition looking for the end of the field (as in our case), this most likely also can not use index effectively.

Thanks
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
Previous
Reply
Map
View

Click here to load this message in the networking platform