ChrisDodgson
Technical User
Hi,
I'm a bit stuck and any and all advice / help would be greatly appreciated.
I have a server (called for arguments sake: server1), this server and all the tables in all the databases on it have the following collation type: SQL_Latin1_General_CI_AS.
Server1 is linked to Server2. The server collation type of Server2 is also SQL_Latin1_General_CI_AS. However, for some reason unknown to me, the collation type on the tables in the relevant database on Server2 is set to Latin1_General_CI_AS.
So now, when I try to run union queries (for example) between Server1 and Server2 tables I get the following error:
Cannot resolve collation conflict for UNION operation.
The query I'm using runs as follows:
select * from [server2].reports.dbo.specialties
union
select * from server1.reports.dbo.specialties_local
(The two tables are identical in structure apart from collation type and I am not allowed to change the collation type of the tables on either server!)
Any and all ideas greatly appreciated.
Many thanks,
Chris
I'm a bit stuck and any and all advice / help would be greatly appreciated.
I have a server (called for arguments sake: server1), this server and all the tables in all the databases on it have the following collation type: SQL_Latin1_General_CI_AS.
Server1 is linked to Server2. The server collation type of Server2 is also SQL_Latin1_General_CI_AS. However, for some reason unknown to me, the collation type on the tables in the relevant database on Server2 is set to Latin1_General_CI_AS.
So now, when I try to run union queries (for example) between Server1 and Server2 tables I get the following error:
Cannot resolve collation conflict for UNION operation.
The query I'm using runs as follows:
select * from [server2].reports.dbo.specialties
union
select * from server1.reports.dbo.specialties_local
(The two tables are identical in structure apart from collation type and I am not allowed to change the collation type of the tables on either server!)
Any and all ideas greatly appreciated.
Many thanks,
Chris