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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking table in two different DB

Status
Not open for further replies.

aishaaa

Programmer
May 1, 2002
21
AE
Hi,

am new to SQL and never use it before it might be easy one but unfortunately I don’t know the answer ..
I have 2 table in 2 different database I want 2 link them
any idea how to do it ??

thansk

 
Assuming the databases reside on the same server, just qualify the name of the table:

Code:
SELECT * FROM database_name.owner.table_name

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top