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

query table in another database

Status
Not open for further replies.

vionca

MIS
Nov 19, 2003
60
US
Hi there,

Is there any way to query a table in database A while working in a table in database B?

I needed to select data from database A and then insert it into database B. I have been using an import, but wonder if there is a better way.

Thanks,
vionca
 
If it's on the same server, you would use:
Code:
Select *
From DatabaseName.Owner.TableName



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top