Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining 2 DB on the same server 2

Status
Not open for further replies.

Scoty

Programmer
Oct 25, 2000
278
US
I have 2 tables in 2 different DB's on the same server. is it possible to join them through SQL (both DB's belong to the same DBO)

Thanks
Scoty

Learn from others' mistakes. You could not live long enough to make them all yourself
-- Hyman George Rickover (1900-86)
 
sure just use the full name to refernce. Here's an example:
Code:
select a.field1, b.f22 from mydatabase..Speakers a join myotherdatabase..TMP00001318 b on a.[field1] = b.f1

Questions about posting. See faq183-874
Click here to help with Hurricane Relief
 
Thank you very much
Scoty

Learn from others' mistakes. You could not live long enough to make them all yourself
-- Hyman George Rickover (1900-86)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top