I have a column thats defined as nvarchar(256). I wish i could post the exact data i'm having issues with but i can't because its sensitive information. Anyways when do the following:[code="sql"]Select MyColumn from MyTable[/code]and then copy the output from the output window and do the following:[code="sql"]Select Cast(N'MyCopiedOutPut' as VarBinary(50))[/code]and then compare it to:[code="sql"]Select Cast(MyColumn as VarBinary(50)) from MyTable[/code]in many cases it matches but it sometimes it doesn't. When it doesn't match up though its VERY VERY close. I mean like one character off in the hex representation. I'm thought maybe it had to deal with maybe the output window using UTF8 so i outputed it to a file i chose unicode encoding. But same thing happened.Do you know whats going on and how to fix the issue?
↧