Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_100_CI_AS" in the equal to operation.

ErrorMessage

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_100_CI_AS" in the equal to operation.

查看SQL Server的Collation

SELECT SERVERPROPERTY (‘Collation‘)

Solution

1. 在安装SQL Server的时候Collation都选择Latin1_General(拉丁,不带100的那个)

2. 如果已经安装了SQL Server的话,那就在Database的属性下修改吧

时间: 2024-10-10 05:56:19

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_100_CI_AS" in the equal to operation.的相关文章

Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "Chinese_PRC_CI_AS" in the equal to operation

  今天查询二个db,出现这个错误,二种方法,一种是把db里的collation改成一样的:如果不方便可以直接在sql语句后面转一下: select * from table where crm_mscrm.dbo.imei.imei_no = csmrep.crmextdb.dbo.imei.imei_no collate Chinese_PRC_CI_AS 疯吻IT

SQL Server, Cannot resolve the collation conflict

今天遇到一个较为头痛的问题: Cannot resolve the collation conflict between "Chinese_PRC_90_CI_AS" and "Latin1_General_CI_AS" in the equal to operation. SQL2008 R2,数据库是从SQL2005的备份文件还原回来的. 估计是因为各种环境问题从而导致同一个数据库不同的表中的列有不同的Collation设置,导致在通过这样的字段连接两个表的时候

Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.

报错: 消息 468,级别 16,状态 9,过程 XXXX,第 355 行Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. 解决方案: 原语句(错误): SELECT a.ShopNo AS DEPTCD, c.[ShopCNName] AS DEPTNAME,a

Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_L及由于排序规则不同导致查询结果为空的问题

报错:Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_L 出错原因: 两个跨库的表的collation不一致 解决办法:在出错的任意列名后面加上collate chinese_prc_ci_as 例如: USE DBA; INSERT INTO SUBJECTDB.ProDefine.ProjectInfo ( Code , ProjectCityCode , CnName

SQL 排序规则问题

http://blog.csdn.net/delphigbg/article/details/12744807 MSSQL排序规则总结 什么是排序规则呢? 排序规则根据特定语言和区域设置标准指定对字符串数据进行排序和比较的规则.SQL Server 支持在单个数据库中存储具有不同排序规则的对象.MSDN解释:在 Microsoft SQL Server  中,字符串的物理存储由排序规则控制.排序规则指定表示每个字符的位模式以及存储和比较字符所使用的规则 当 Transact-SQL 语句在具有不

SQL Server 问题之 排序规则(collation)冲突

一.写在前面 最近公司进行开发环境升级,数据库也准备了一个新的服务器,一切准备好后开始数据迁移,采取的方式为对现有Database(现有服务器Windows Server 2003 + SQL Server 2005)进行Back up,然后在新服务器(Windows Server 2008 R2 + SQL Server 2008 R2)上再Restore Databse,一切似乎挺顺利的.但是当从Web Server开始访问的时候出现错误Cannot resolve the collatio

表中与当前库的collation不一致的字段

--对于与当前数据库排序规则不一致的字段. select o.name, c.name ,collation_namefrom sys.columns c,sys.objects o where c.object_id=o.object_id and o.type='U' and c.system_type_id in (167,175,231) --varchar\char\nvarcharsysnameand collation_name<>DATABASEPROPERTYEX(DB_na

创建link server链接服务器碰到的问题及解决办法

问题描述 今天在做数据库迁移,然后新建link server(链接服务器)的时候,碰到以下问题. 我的sql 脚本是这样的. 然后,执行的时候就收到以下错误信息. Msg 468, Level 16, State 9, Line 7 Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal t

解决SqlServer中Collate冲突的问题

使用Sql连表查询的时候会遇到Collate冲突的问题,比如: select id,Name from [dbo].VMImage union select id,Name from [dbo].[DicVMImage] 得到的Error: Msg 468, Level 16, State 9, Line 1 Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_Latin1_Ge