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_AS" in the equal to operation.

是因为其中2个数据库collation不相同导致。

 解决方法,在存储过程或t-ql语句添加COLLATE XXX
即是改其中一个数据库条件连接字段设置为相同即可。

 

posted @ 2020-11-13 09:12  Insus.NET  阅读(2496)  评论(0编辑  收藏  举报