现在的位置: 首页 > 综合 > 正文

排序规则害死人,问个问题

2012年11月14日 ⁄ 综合 ⁄ 共 1023字 ⁄ 字号 评论关闭
希望dudu谅解,这个问题我解决不了,看大家的智慧。

事情很复杂

 

我的网站海洋工作室(http://sps.oceanstudio.net ),因为用的数据库是英文版sql server,所以里面的搜索只能搜索英文关键字,不能搜索中文关键字。据一老兄介绍,只要将数据库的排序规则设置成中文的,就可以支持中文的全文检索。我用如下语句:

 

alter database 海洋工作室1_SITE collate Chinese_PRC_CI_AS

 

但是报错,也就是说数据库中有些内容和排序规则有关,所以不能够设置新的排序规则。这样该怎么办才好呢?错误信息如下:

 

Server: Msg 5075, Level 16, State 1, Line 1

The object 'CK_CatDef' is dependent on database collation.

Server: Msg 5075, Level 16, State 1, Line 1

The object 'CK_CatJoint_Title' is dependent on database collation.

Server: Msg 5075, Level 16, State 1, Line 1

The object 'CK_CatKeyword_Keyword' is dependent on database collation.

Server: Msg 5075, Level 16, State 1, Line 1

The column 'Docs.LTCheckoutUserId' is dependent on database collation.

Server: Msg 5075, Level 16, State 1, Line 1

The column 'Docs.Extension' is dependent on database collation.

Server: Msg 5075, Level 16, State 1, Line 1

The object 'CK_CatPath_Depth' is dependent on database collation.

Server: Msg 5072, Level 16, State 1, Line 1

ALTER DATABASE failed. The default collation of database '海洋工作室1_SITE' cannot be set to Chinese_PRC_CI_AS.

 

欢迎访问海洋工作室(http://sps.oceanstudio.net )

oceanocean@forever.net.cn

抱歉!评论已关闭.