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!

joining tables from different servers

Status
Not open for further replies.

mkp2004

Programmer
May 27, 2004
11
US
I need to query the data from 3 tables in 3 different servers.Basically a union of these 3 tables.please help me out

10.50.200.139 (server),order(database),table1
10.50.200.139\CIG (server),product(database),table2
10.50.100.142 (server),sales(database),table3
 
Look up "Linked Servers" in BOL and ask your next question.
-Karl

[red] Cursors, Triggers and User Definded Functions are part of the Axis of Evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Which might be "should I do it".

This looks like a join rather than a union so the answer is probably no. Copy the other tables locally and join there.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Link the servers. Make sure the DTC (Distributed Transactions Coordinator) is up and running. Know ramifications (performance, resources etc).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top