Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major problem with indexing
Message
De
30/09/2008 15:50:40
 
 
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:
01351898
Vues:
24
>These two things are not equivalent as a LIKE clause
>
>
>test%               <
>test%<
>
>
>The trailing spaces are significant between the char() and the varchar() variables.

So, basically, when doing such a query from the SSMS interface, where I would go parameterized, I should always use varchar instead.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform