Peter's usggestion should work, if the databases are on the same instance. Or you could specify the database in the query


[select * from db1.dbo.customer inner join myotherdb.dbo.country on ...]