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
 General SQL Server Forums
 New to SQL Server Programming
 Help on openquery

Author  Topic 

Sarakumar
Posting Yak Master

108 Posts

Posted - 2009-06-08 : 01:04:42
Hai, is it possible to use the linked server table'e one of the column to the sql table column value \..
is it valid query


select * from openquery(sieble, 'select c.custname from sieble.cust c where c.cid in ( select cid from sqltble)')

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-06-08 : 02:14:45
Try

select s.* from openquery(sieble, 'select c.custname from cust') as s inner join
sqltble c on s.id=c.cid


Madhivanan

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

- Advertisement -