I'm looking to join 2 tables from 2 different databases, the only problem is both databases have the same name (however with very different underlying data structures).
Does anyone know how I could join the DataTrue_Report Db from both of these servers?
I tried fully qualifying the name with the server name and mixing in some use statements but it doesn't want to play well with the two databases.
Query 1:
SELECT [ClientId] ,
[TPId] ,
[Client_Rolling_Revenue] ,
[TP_Rolling_Revenue] ,
[Client_MTD_Revenue] ,
[TP_MTD_Revenue]
FROM [DataTrue_Report].[dbo].[SF_REVENUE]
Query 2:
SELECT [FeeId]
,[ChainId]
,[SupplierId]
,[Fees]
,[FeeMode]
,[IsNewspaper]
,[CalculateOn]
,[ActiveStartDate]
,[ActiveEndDate]
,[ChainIdentifier]
FROM [DataTrue_Report].[dbo].[SBTServiceFees]
When connected to database 1, the 2nd query says no object found and vice versa.