June 23, 2009 at 2:40 am
Hi All,
I have problem with chinese characters in TSQL. If I excute following code block, it displays characters as '????????'
DECLARE @result nvarchar(max)
SET @result = '나노솔루션테크'
PRINT @result
How do I make sure that chars are displayed correctly for further processing?
Also it could be chinese or korian or japanese.
Any help would be appreciated.
Thanks,
Bhimraj
June 23, 2009 at 3:52 am
It will work
DECLARE @result NVARCHAR(MAX)
SELECT @result = N'???????'
PRINT @result
(Or)
DECLARE @result NVARCHAR(MAX)
SELECT @result = N'???????'
PRINT @result COLLATE Chinese_PRC_CI_AI
June 23, 2009 at 4:07 am
THANK you sathappanpandian !!
--Bhimraj
October 8, 2014 at 6:01 am
but how to pass in stored proc
October 8, 2014 at 6:28 am
Declare your parameter as nvarchar and then be sure to pass an nvarchar value when calling it.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply