Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case Sensitive comparison, simple one!
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00637469
Message ID:
00637479
Views:
20
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform