Unicode code to text SQL Server 2008 -


i have problem uinsg sql server 2008.

i need write query selection , join of several tables. it's ok. 32000 rows.

but there tables columns (logins , on) contain cells numbers 0041007600750074006f0076005200590073 or 00420072007500330065006e0073006b006100790062, not text want be.

it's unicode coded text. online converter converts text.

the question how can decode these numbers in query text result.

abcd.. instead of 0041007600750074006f0076005200590073

you might use convert decode string example:

select convert(nvarchar, convert(varbinary, '0x' + '420072007500330065006e0073006b006100790062', 1))

remark: did remove first zero's of string...


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -