I have the following string
áéíóú
which I need to convert it to
aeiou
How can I achieve it? (I don't need to compare, I need the new string to save)
I have the following string
áéíóú
which I need to convert it to
aeiou
How can I achieve it? (I don't need to compare, I need the new string to save)
Try using COLLATE
:
select 'áéíóú' collate SQL_Latin1_General_Cp1251_CS_AS
For Unicode data, try the following:
select cast(N'áéíóú' as varchar(max)) collate SQL_Latin1_General_Cp1251_CS_AS
I am not sure what you may lose in the translation when using the second approach.