SQL Server Express 2005 unicode字符

时间:2010-07-20 13:43:29

标签: sql-server unicode

我正在使用SQL Server 2005 Express实例。任何尝试(以编程方式或使用表编辑器(例如VS Server Explorer - >编辑表数据))输入unicode字符串都会产生一系列问号(????)。我想SQL Server 2005 Express根本不支持unicode,或者它需要一些额外的配置才能启用unicode。请帮忙。

2 个答案:

答案 0 :(得分:4)

数据类型必须是nvarchar注意开头的n ),并且在使用字符串时必须使用N前缀..

INSERT INTO <table> (somefield) VALUES (N'string to insert..')

答案 1 :(得分:1)

并非所有Unicode字符都可以通过您在编辑器中选择的字体正确呈现。