cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to force AccentSensitivity?

MCMartin
Participant
0 Kudos
2,444

In a database with AccentSensitive=off the Replace function treats 'a' and 'ä' the same. So does any way exists to temporarily force AccentSensitivity for the Replace function?

Accepted Solutions (0)

Answers (1)

Answers (1)

VolkerBarth
Contributor
0 Kudos

Treating the whole string as binary (and therefore case sensitivity and the like) would be too strong, I guess? Otherwise, replace() with binary datatypes might do the trick.

MCMartin
Participant

I think binary replace is available from SQLA 17 up

VolkerBarth
Contributor
0 Kudos

Yes, I should have known better, as I asked that a while ago:

How do builtin string functions work with binary data?

and Mark has explained that REPLACE() (pre-v17) does only work with character data and would convert binary input into character data...