Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last four characters of a field
Message
From
17/10/2012 16:29:42
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01555203
Message ID:
01555210
Views:
50
>Well, it will be
>
>FieldName LIKE '%[.]ext'
>
>This will be non-sargable, so if you can create a computed column for extension and index on it, the performance will be better.

Thanks, I have additional integer index that are part of the query. So, this short out the result to about 10 to 20 records at most. If I add a condition like this, it should be pretty much fast I guess.

What is non-sargable?
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
Next
Reply
Map
View

Click here to load this message in the networking platform