- Rongsen.Com.Cn 版权所有 2008-2010 京ICP备08007000号 京公海网安备11010802026356号 朝阳网安编号:110105199号
- 北京黑客防线网安工作室-黑客防线网安服务器维护基地为您提供专业的
服务器维护
,企业网站维护
,网站维护
服务 - (建议采用1024×768分辨率,以达到最佳视觉效果) Powered by 黑客防线网安 ©2009-2010 www.rongsen.com.cn
作者:黑客防线网安SQL维护基地 来源:黑客防线网安SQL维护基地 浏览次数:0 |
汗,今天被Sql Server的Collate子句大玩了一把,看在线帮助不仔细!让自己绕了一个大圈,以后看MS帮助可要仔细了,事情是这样的:
下午,老大给我们发来一段SQL Script,要我们测试,看有没有错误,如有,请提出!整个Script全部在这里!
我当时就将这段脚本拉进了查询分析器,一执行,呵呵,根本没错�。∧抢洗笪裁匆⒄庋挠始隼茨兀坑谑俏矣智谢涣思父鰀atabase,也没有什么问题,正当我准备测试完这一个database就放弃测试退出的时候,问题来了。错误消息如下:
Server: Msg 446, Level 16, State 9, Line 61
Cannot resolve collation conflict for equal to operation.
呵呵,有困难,找警察,咱有难,就找online啦。按下F1,键入collation,最后定位至See also中的Collate,查到帮助文件如下(不好意思,我只是将sql server2000 的在线帮助源封不动的复制了一下,当然在我当时没有看仔细的那一句我变换了颜色,各位朋友也请不要犯同样的错误为好。呵呵):
COLLATE
A clause that can be applied to a database definition or a column definition to define the collation, or to a character string expression to apply a collation cast.
Syntax
COLLATE < collation_name >
< collation_name > :: =
{ Windows_collation_name } | { SQL_collation_name }
Arguments
collation_name
Is the name of the collation to be applied to the expression, column definition, or database definition. collation_name can be only a specified Windows_collation_name or a SQL_collation_name.
Windows_collation_name
Is the collation name for Windows collation. See Windows Collation Names.
SQL_collation_name
Is the collation name for a SQL collation. See SQL Collation Names.
Remarks
The COLLATE clause can be specified at several levels, including the following:
Creating or altering a database.
0 顶一下0 踩一下 |
我要申请本站:N点 | 黑客防线官网 | |
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479 |