How to join two tables from different databases?
Please send me reply immediately.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ParthaPosted Jan 3, 2008, 11:28 AM
You can do something like
select a.col1, b.col2
from db1.dbo.tbl1 a join db2.dbo.tbl2 b
on a.key=b.key