查询
sp_configure 'default char'
go
SELECT id,name FROM syscharsets WHERE id IN (1,171,173,190)
go
查看当前数据库服务名
SELECT @@servername
打开Dos窗口 切换到对应的文件夹路径
以把数据库字符集修改为gb18030为例 依次输入下面的命令
cd c:\sybase\chatset\gb18030
Charset -Usa -P123456 -SCSL6SC1(这里替换成你的数据库服务名) binary.srt gb18030
看到”Successful” 的字眼后 代表字符集装载完成,执行成功
1.1.1 设置新的字符集为刚刚装载的字符集
打开DOS窗口,使用ISQL 工具登陆客户端
输入下面的命令
sp_configure 'default char',173
go
执行完成后,在services.msc服务里 重启Sybase数据库services
1重启完成后,查看新的数据库字符集是否被修改过来了
打开DOS窗口,使用ISQL 工具登陆客户端
依次输入下面的命令
sp_configure 'default char'
go
SELECT id,name FROM syscharsets WHERE id IN (1,171,173)
go