Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major problem with indexing
Message
 
À
30/09/2008 12:32:22
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01351824
Message ID:
01351842
Vues:
18
>>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?

Because there are no trailing spaces after [%] sign.
You search for:
[Axxxxx% ] && up to 20 chars
not for
[Axxxxx%]

And I am not sure how SQL Server acts that way. The SP is still installed so I can't run SSMS right now :-( and check it.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform