sql server 小技巧(6) Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "Chinese_PRC_CI_AS" in the equal to operation

时间:2023-04-19 22:11:26

今天查询二个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 小技巧 集锦