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)
 Retriving data from other server

Author  Topic 

jogin malathi
Posting Yak Master

117 Posts

Posted - 2007-07-13 : 05:14:59
hi all
I have table A in 'mmm' server
Table B in 'sss' server
I want to write select statement to retrieve data from two tables A,B
HOW TO WRITE QUERY FOR ABOVE REQUIREMENT

Thanks In Advance

Malathi Rao

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-13 : 05:18:20
1) Read about LINKED SERVERS.
2) Use an ordinary SELECT statement.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-07-13 : 08:08:08
After linked other server as Linked server, do

Select columns from servername.dbname.dbo.table

Also read about OPENDATASOURCE

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -