I am trying to connect from a Microsoft SQL server to AS / 400 so that I can pull data from AS / 400 and then mark the data as popped.
I have successfully created an OLE DB connection "IBMDASQL" and can retrieve data with some data, but I have a problem when I try to retrieve data from a very large table.
This is normal, and returns an account of 170 million:
select count(*)
from transactions
This request is completed 15 hours before I give up. (It should return zero, since I have not marked anything as "in process" yet)
select count(*)
from transactions
where processed = 'In process'
I am a Microsoft guy, but my AS / 400 guy says that there is an index in the “processed” column and locally this query is executed instantly.
, ? 68 :
select count(*)
from smallTable
where RandomColumn = 'randomValue'
, , AS/400, , .