开发者

Problem with nvarchar data with XML in SQL server 2005

Create table testxml
(xmldata xml)

declare @var nvarchar(max)
set @var = N'الوفاق الوطني المخ'

insert into testxml
select @var 

After inserting , i am getting data from table like

select * from testxml
---------------------
????????

Can you provide me the s开发者_高级运维olution?


It seems to be an encoding problem with your terminal. You may use these commands to have more information on your encoding properties.

sp_helpsort;

SERVERPROPERTY ( collation )


this should help as GABS said :

SELECT SERVERPROPERTY ('collation' )

to see the list of collation and update(mine is Latin1_General_CI_AI)

SELECT * FROM ::fn_helpcollations()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜