View Single Post
  #1 (permalink)  
Old 01-09-09, 13:59
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Canada
Posts: 377
fetch gives different number of records

when we run fetch from the application program (C++) we get 18 recs, if I run an sql statement I get 200 records. From the top of your head what could be the problem.

We get no error messages. I've done reorg and runstats on all tables and indexes used in the query and it did not make any difference. db2diag did not detect any problems on the database at the time when program was run.

Thanks
__________________
DB2 v9.5 ESE on AIX v6.1
Reply With Quote