sql server 小技巧(6) 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

sql server 小技巧 集锦

原文地址:https://www.cnblogs.com/fengwenit/p/4254372.html