SYBASE里面出现客户端和服务器端字符集不匹配的情况解决方法

使用sa用户进行数据库登陆时出现字符集不匹配的问题 Msg 2401, Level 11, State 2: Server 'LCDACS_SERVER': Character set conversion is not available between client character set 'utf8' and server character set 'iso_1'. No conversions will be done. 解决办法是: 把”enable unicode conversions”参数设置为1或者2。当配置为1时,此设置使用直接转换或Unicode转换; 当配置为2时,此设置使用Unicode转换;默认配置值为0,使用直接转换。 在isql环境中执行: 1>; sp_configure ”enable unicode conversions”,1 2>; go 均是用sa用户登陆 附:字符集转换禁用   禁用字符集转换的配置方法   在isql环境中执行:   1>; sp_configure “disable character set conversion”,1   2>; go    “disable character set conversion”参数默认配置值为0,即启用字符集转换。

posted on 2012-09-28 15:41  Mingers  阅读(1350)  评论(0编辑  收藏  举报

导航