Need help ! SQL and Proc *C

:slight_smile:
hi all !
Please help me
When I select data from oracle with proc * C prog.
I count the number of rows
For example the total rows is 1000000
but the number of result return is a limit number 5000 for ex
So How can I know this limit

check the environment variables like ROWCOUNT for database access and set them accordingly using EXEC SQL statements.

how to check ?

ARRAYSIZE determines how fetches work.

If you post your SELECT statement then we can help.

I define the arraysize is 5000
The total rows is 2500
But cnt=sqlca.sqlerrd[2] just 550
How ?

yes ROWCOUNT is correct variable to rely on .