Reputation: 82
Here is the code:
Select PATINDEX('%[a-z]%','FIRSTNAME')
and, the result is 1. I cannot understand.
Upvotes: 0
Views: 203
Reputation: 50163
For that, you will need COLLATE
them as follow
SELECT patindex('%[abcdefghijklmnopqrstuvwxyz]%','FIRSTNAME' COLLATE SQL_Latin1_General_CP1_CS_AS)
Upvotes: 2