views:

43

answers:

2

I need to compare 2 strings in sql so that the word

"iast" would be equal to "îăşţ"

anybody knows how to do this ?

+5  A: 

Just use an accent-insensitive collation for your comparisons:

IF 'iast'='îăşţ' COLLATE Latin1_General_CI_AI
PRINT 'YES'

For more info go through this link

Bharat
+2  A: 
  select 1 from Table_1
  where 'iast' = 'îăşţ' COLLATE Latin1_General_CI_AI
igor