Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Major problem with indexing
Message
 
 
To
30/09/2008 12:32:22
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01351824
Message ID:
01351857
Views:
21
>>I can't test this right now (I install some SP here)
>>but what if you change declarations of the variables from CHAR() to VARCHAR()?
>
>Changing to varchar will find the records.
>
>But, why?
declare @x char(20)
set @x = 'test%'
select @x + '<'

declare @y varchar(20)
set @y = 'test%'
select @y + '<'
there's a big difference between those two as far as the LIKE operation is concerned
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform