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
 Transact-SQL (2000)
 SAGE Linked Server Returning only 1 row

Author  Topic 

martinb13
Starting Member

2 Posts

Posted - 2004-08-24 : 12:37:52
I have a linked server (Line 50 data) using Sage Line 50 ODBC. When I issue the statement I get the result 30
select * from OPENQUERY(LINE50, 'select Count(*) from SALES_LEDGER')
Which is correct.

I then try to return the data from the table using the following
select * from OPENQUERY(LINE50, 'select * from SALES_LEDGER')
This only returns the first record. I can change the table name to any table in the linked server and the results are the same - only the first record is returned.
I do the same thing linking to another accounts package this time using the visual fox ODBC driver and it works perfectly.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-08-24 : 13:01:04
the first thing that comes to my mind is that rowcount is set to one on your box. set it to zero and try again.


Go with the flow & have fun! Else fight the flow :)
Go to Top of Page

martinb13
Starting Member

2 Posts

Posted - 2004-08-26 : 06:22:30
I can retrieve all the records form the visual fox linked server.
Go to Top of Page
   

- Advertisement -