Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Encoding character type in sql server column

$
0
0

Hello,

I am having troubles during REPLACE character in sql server column due to fact that, it seems to me, SQL Server does not recognize two "the same" characters i.e., some of them it translates into another encoding system correctly while, some of them, keeps untouched, as entered. Obviously, according to my understanding, they "look the same shape" but, obviously, belong to different encoding systems. How to change encoding system for some of them?

Namely, this UPDATE statement:

UPDATE TOP (4000000) tblName
SET       FirstName = N'Đ' + SUBSTRING(FirstName, 2, 8000)
WHERE (FirstName LIKE N'Ð%')

works fine for my case but, as you see, it replaces just the first occurrence. Could it be possible to expand  this pattern to all occurrences?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>