eric.dizon
23rd April 2014, 00:02
I've created a T-SQL function/stored procedure on how to retrieve a value of a text in the tttxt010 table. The issue I have right now is there a way to retrieve a text value that is in Chinese character using t-sql only?
My function works fine when fetching English text, I get this value in SSL Management Server Studio when I use for Chinese encoded text
This is what I get from the query below... How make it show properly in Chinese ?
›½©ê›¾£Ì›½Ì¯›½¢›½¤›¾žæ›½õÙ›½®¨›½À›½œÈ›½žÍ›½þþŸ
SELECT @txt_content = ISNULL(cast(c.t_text as varchar(500)),'')
FROM [erplndb].[dbo].[ttttxt010600] c
WHERE c.t_ctxt = @txt_id and c.t_clan = @txt_lang and c.t_seqe = 1;
My function works fine when fetching English text, I get this value in SSL Management Server Studio when I use for Chinese encoded text
This is what I get from the query below... How make it show properly in Chinese ?
›½©ê›¾£Ì›½Ì¯›½¢›½¤›¾žæ›½õÙ›½®¨›½À›½œÈ›½žÍ›½þþŸ
SELECT @txt_content = ISNULL(cast(c.t_text as varchar(500)),'')
FROM [erplndb].[dbo].[ttttxt010600] c
WHERE c.t_ctxt = @txt_id and c.t_clan = @txt_lang and c.t_seqe = 1;