Hi, I need to compare a two string in case sensitive mode but even I use a proper collation but the result is incorrect. Which collation will help me?
select PATINDEX('%[a-z]%', 'A12123z' collate SQL_Latin1_General_CP1_CS_AS)
--> Correct!
select PATINDEX('%[A-Z]%', 'sdfasCdfsfA' collate Latin1_General_CS_AS )
--> Incorrect! the result is 1 but correct one is 6