Would you be able to confirm whether we can reference the other database.table like below:
Select
A.*,
B.*
FROM
dbo.Test A
INNER JOIN databaseB.dbo.Test2 B
ON A.ID=B.ID
When I do above I get this error message:
Reference to database and/or server name is not supported in thisversion sql server
Any work around will be appreciated.
According to this the suggestion is to do the cross-database join in your code.