Solved

join seperate databases

Posted on 2015-02-09
2
84 Views
Last Modified: 2015-02-09
How do you join tables that are NOT in the same database (2 different databases)?
0
Comment
Question by:MBHEY131
2 Comments
 
LVL 32

Accepted Solution

by:
Daniel Wilson earned 500 total points
ID: 40599954
Same server or different?  If different servers ... I don't think you can do that.

If it's the same server, include the DB name with the tablenames.

select * from
DbAlpaha.CoolTable C Inner Join DbBeta.WeirdTable W on C.ID = W.ID;

Open in new window

0
 

Author Closing Comment

by:MBHEY131
ID: 40600048
Same Server
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now