1. 要确定没有其他人连接当前的数据库. 可以用sp_who查看,再用kill @spid强制关闭其连接.

2. 执行SQL,修改DB的Collate属性

 

USE [master]
GO
ALTER DATABASE [My_DB] COLLATE Finnish_Swedish_CS_AS
GO

 

 

3. 得到原先用到的Collate

 

Use [My_DB]
select distinct collationid from syscolumns

 

4. 设置允许更新系统表(注意, SQL Server 2005中,你无法更新系统表!)

 

EXEC   sp_configure   'allow updates',1   
RECONFIGURE   WITH   OVERRIDE 

 

5.将第三步得到的collationid,更新为新的

 

update syscolumns set collationid = 49162 --new 
where collationid in (1359003656--old

 

6. 关闭更新系统表功能

EXEC   sp_configure   'allow updates',0   
RECONFIGURE   WITH   OVERRIDE  

 

OK.

相关文章:

  • 2021-12-22
  • 2022-01-14
  • 2022-02-13
  • 2022-12-23
  • 2021-08-13
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-01-10
相关资源
相似解决方案