Indicates whether there are more commands to be processed.
RETCODE dbmorecmds ( PDBPROCESS dbproc );
Is the DBPROCESS structure that is the handle for a particular workstation or Microsoft® SQL Server™ 2000 process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.
SUCCEED to indicate more results in the command batch; otherwise, FAIL.
It should be called after dbnextrow returns NO_MORE_ROWS. If you know that the current command does not return any rows, you can call dbmorecmds after dbresults returns SUCCEED.
You can get the same information by calling dbresults until it returns NO_MORE_RESULTS.