Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is this slow?
Message
From
20/04/2001 09:03:09
 
 
To
20/04/2001 08:47:30
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00496698
Message ID:
00497813
Views:
14
Queries containing LIKE are optimizable as long as the literal takes the form value%. SQL Server can convert the comparison. For example, if the WHERE clause looked like au_lname LIKE 'sm%', SQL Server solve this by converting it to:

au_lname >= 'sm' AND au_lname < 'sn'

SQL Server cannot optimize the situation where the wildcard comes first: '%sm'

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform