简体   繁体   中英

conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation

I try to join two tables from different SQL servers. I made a LikndedServer, it takes the data from that server, but when I do ' inner join ' with a table from another Db is shows this error : Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation

The query is like below:

select * from [DB1].[dbo].[Employee] as P1 
inner join [LinkedWebServer].[DB2].[dbo].[View_HyrjeDalje_Punetoret] as P2 on
 P1.[Personal_No] = P2.[vcNumriPersonal]

Thank You!

select * from [DB1].[dbo].[Employee] 作为 P1 内连接 [LinkedWebServer].[DB2].[dbo].[View_HyrjeDalje_Punetoret] 作为 P2 on P1.[Personal_No] collat​​e database_default = P2.[vcNumriPersonal] collat​​e数据库_默认

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM