Du kan referere direkte til andre databaser, hvis brugeren har tilladelser.
<database>.<user>.<tablename>
Er den fulde "sti" til databasetabellen.
Ofte bruger du
db1.dbo.tbl1 join db2.dbo.tbl2
hvor dbo er standard for databaseejer, ejes enhver tabel, der ikke ejes af en specifik bruger, af dbo som standard.
UPDATE
For at få forespørgslen til at validere kan du udvide den til dette
SELECT * FROM
(SELECT a.concession as db1_CON_NUMBER FROM db1.dbo.concessions as a
UNION
SELECT b.[Concession Number] as db1_CON_NUMBER FROM db1.dbo.invoicing as b ) c
INNER JOIN
(SELECT c.concession as db2_CON_NUMBER FROM db2.dbo.concessions as a
UNION
SELECT b.[Concession Number] as db2_CON_NUMBER FROM db2.dbo.invoicing as b ) d
ON db1_CON_NUMBER = db2_CON_NUMBER
Men jeg har ikke haft tid til at tjekke, om dette ville returnere de rigtige data, men du kan teste.