开发者

SQL Server Express 2005 unicode characters

开发者 https://www.devze.com 2023-01-07 21:23 出处:网络
I\'m working with an SQL 开发者_如何转开发Server 2005 Express instance. Any attempt (both programatically or by using a table editor (for example VS Server Explorer --> Edit Table Data)) to enter a un

I'm working with an SQL 开发者_如何转开发Server 2005 Express instance. Any attempt (both programatically or by using a table editor (for example VS Server Explorer --> Edit Table Data)) to enter a unicode string results in a sequence of question marks (????). I guess that either SQL Server 2005 Express doesn't support unicode at all or it requires some extra configuration to enable unicode. Please help.


THe datatype must be nvarchar (note the n at the start) and you must use the N prefix when using strings ..

INSERT INTO <table> (somefield) VALUES (N'string to insert..')
  • Microsoft technote
  • nchar and nvarchar


Not all Unicode characters may be rendered correctly by the font you chose in your editor.

0

精彩评论

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

关注公众号