sql server Cannot resolve the collation conflict between "Chinese_PRC_BIN" and "Chinese_PRC_CI_AS" in the equal to operation

时间:2020-11-28 03:28:27

今天查询二个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