Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_L及由于排序规则不同导致查询结果为空的问题
2017-05-03 18:14
2819 查看
报错: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 ,
Creator ,
CreateTime ,
ValidStatus ,
SortNo ,
VersionNo,
VersionStartTime
)
SELECT NEWID(),
CITY.Code,
INS.项目名称,
'BDD',
GETDATE(),
'1',
'1',
'1',
GETDATE()
FROM BDD_PROJECTINFO_SHIYAN_INSERT INS
INNER JOIN SUBJECTDB.Common.City CITY ON
INS.项目城市 COLLATE chinese_prc_ci_as =CITY.CnName
WHERE INS.项目名称 COLLATE chinese_prc_ci_as NOT IN(SELECT CnName
FROM SUBJECTDB.ProDefine.ProjectInfo
)
相关文章推荐
- Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_L及由于排序规则不同导致查询结果为空的问题
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AS" in the equal to operation.
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI"
- Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "Chinese_Taiwan_Stroke_CI_AS"
- sql server 小技巧(6) Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "Chinese_PRC_CI_AS" in the equal to operation
- the collation conflict between "chinese_prc_ci_as" and "sql_latin1_general_cp1_ci_as" in the equal t
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to
- 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 "Japanese_CI_AS" and "SQL_...
- SQL Server: collation conflict between "Chinese_PRC_CI_AS" and "SQL_Latin1_General_CP1_CI_AS"
- 解决MSSQL 无法解决 equal to 操作中 "SQL_Latin1_General_CP1_CI_AS" 和 "Chinese_PRC_CI_AS" 之间的排序规则冲突 问题
- conflict between "Chinese_PRC_CI_AI" and "Chinese_PRC_CI_AS" in the equal to operation
- sql:无法解决 equal to 操作中 "Chinese_PRC_CI_AS" 和 "Chinese_Taiwan_Stroke_CI_AS" 之间的排序规则冲突。
- sqlserver2008查询语句报错 无法解决 equal to 运算中 "Chinese_PRC_BIN" 和 "Chinese_PRC_CI_AS" 之间的排序规则冲突
- 无法解决 equal to 操作中 "SQL_Latin1_General_CP1_CI_AS" 和 "Chinese_PRC_CI_AS" 之间的排序规则冲突。
- 无法解决 equal to 操作中 "SQL_Latin1_General_CP1_CI_AS" 和 "Chinese_PRC_CI_AS" 之间的排序规则冲突。
- 两种不同编码规则("Chinese_PRC_BIN" 和 "Chinese_PRC_CI_AS")的表之间的数据查询,如
- 无法解决 equal to 操作中 "SQL_Latin1_General_CP1_CI_AS" 和 "Chinese_PRC_CI_AS" 之间的排序规则冲突。
- 无法解决 equal to 运算中 "Chinese_PRC_CI_AS" 和 "SQL_Latin1_General_CP1_CI_AS" 之间的排序规则冲突。
- Cannot resolve the collation conflict between "SQL_Latin1_Gen