Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Case Sensitive comparison, simple one!
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00637469
Message ID:
00637479
Vues:
21
This message has been marked as the solution to the initial question of the thread.
You can do that by converting string values to binary
IF CAST( 'ALLO' AS varbinary(10)) = CAST( 'Allo' AS varbinary(10))
	PRINT '=='
ELSE
	PRINT '<>'
>Consider the following example:
>
>IF 'ALLO' = 'allo'
> SELECT 'same'
>ELSE
> SELECT 'diff'
>
>I get 'same'
>
>In TSQL, how do I specify that the comparaison shoudl be case sensitive ?
>
>(I've tried with PATINDEX with no luck)
>
>Thanks.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform