开发者

force unicode strings in sql

Is there a way to force sql connection to always 开发者_如何学Cuser 'string' as unicode string, without manualy adding N prefix (N'string')? I'm using SQL 2008 and i have unicode datatype (nvarchar, nchar,...)


No, you always have to use N to denote a unicode string literal.

Or assign the c# (for example) string to the nvarchar parameter (rather than any string concatenation)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜