我尝试连接来自不同SQL服务器的两个表。我制作了一个LikndedServer,它从该服务器获取数据,但是当我对另一个Db中的表进行'inner join
'时会显示此错误:Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation
查询如下:
select * from [DB1].[dbo].[Employee] as P1
inner join [LinkedWebServer].[DB2].[dbo].[View_HyrjeDalje_Punetoret] as P2 on
P1.[Personal_No] = P2.[vcNumriPersonal]
谢谢!
答案 0 :(得分:0)
从[DB1]。[dbo]。[Employee]中选择*作为P1 内部联接[LinkedWebServer]。[DB2]。[dbo]。[View_HyrjeDalje_Punetoret]作为P2,位于 P1。[Personal_No]整理database_default = P2。[vcNumriPersonal]整理database_default