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.