Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Joining Tables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-05-03 : 13:07:43
Edward writes "Could I join tables from different Server Group?

example:
Table A contains ID,Name from Server1
Table B contain ID,AID,Transactions from Server2
joining ID from Table A to AID of Table B"

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-05-03 : 13:16:19
SELECT a.ID, a.Name, b.ID, b.Transactions
FROM Server1.dbname.dbo.TableA a
INNER JOIN Server2.dbname.dbo.TableB b
ON a.ID = b.AID

Just setup a linked server on Server1 that links to Server2.

Tara
Go to Top of Page
   

- Advertisement -