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

Linking servers...

Status
Not open for further replies.

jazerr

Programmer
Dec 13, 2000
152
US
So, I'm in a bit of a bind..

I have a two tables. Each on its own server. There is a relationship between the two, but...they are on different servers..

I need to know how to link the two servers so I can successfully join the tables and get my data..

ANy help would be great.
 
You could set up a linkedserver on the tables from one server or use a fully qualified name. example from Northwind.

select A.*, B.* from bigtuna.northwind.dbo.Employees A
inner join greatwhite.northwind.dbo.Employees B
On A.employeeid = B.employeeid
 
Hi

have a look at the following thread where I showed somebody else how to query from one server to another and how to set up a linked server thru Enterprise Manager or with sp_addlinkedserver.

Thread183-389495

Hope it helps

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top