DB1.tblFoo
FooID | FooValue | BarID
DB2.tblBar
BarID | BarValue
How do I INNER JOIN on tblBar
SELECT *
FROM DB1.tblFoo a
INNER JOIN DB2.tblBar b on a.BarID = b.BarID
if they have different username/passwords for each database. How do I authenticate? I can do this in a stored procedure if needs be.
FooID | FooValue | BarID
DB2.tblBar
BarID | BarValue
How do I INNER JOIN on tblBar
SELECT *
FROM DB1.tblFoo a
INNER JOIN DB2.tblBar b on a.BarID = b.BarID
if they have different username/passwords for each database. How do I authenticate? I can do this in a stored procedure if needs be.