I've used collate in the past to join two tables together from different servers with different collation using a linked server, but now I need to bring together two sets of data with different collation by using UNION ALL. How
SELECT InvNumber
FROM [SERVERA].[DatabaseA].dbo.[TableA]
UNION ALL
SELECT OrderNumber
FROM [SERVERB].[DatabaseB].dbo.[TableB]
Database A is SQL_Latin1_General_CP1_CI_AS
Database B is Latin1_General_Bin
I have to come up with a solution that does not involve altering any databases.
Thanks