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

SQL question

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Can I join two tables residing in the different databases on the different servers?
 
Yes, first you would link the second server to the sysservers with the command sp_addlinkedserver (see SQL books on line for the exact syntax), second use the full cualification for the tables ServerName.DatabaseName.DatabaseOwner.TableName TableAlias

Regards
Juan Carlos.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top