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)
 calling table from diff server

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2007-01-29 : 05:20:34
hi fyi,
can any one tell me how to call a table from diff server using sp_addlinkedserver

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-01-29 : 05:22:32
type sp_addlinkedserver in Query Analyzer
and now press shift-f1 key simultaneously...


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-01-29 : 05:24:39
Add linked server using sp_AddLinkedServer as described in BOL.

And to select data from linked server:
Select * from LinkedServerName.Database.Owner.Table



Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -