Indicate whether the current command actually returned rows.
RETCODE DBROWS(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
SUCCEED or FAIL, indicating whether the current command returned rows.
This macro determines whether the command currently being processed by dbresults returned any rows. The application can call it after dbresults returns SUCCEED.
The application must not call DBROWS after dbnextrow. The macro may return the wrong result at that time.
The application can use DBROWS to determine whether it needs to call dbnextrow to process result rows. If DBROWS returns FAIL, the application can skip the dbnextrow calls.
The DBCMDROW macro determines whether the current command is one that can return rows (that is, a Transact-SQL select statement or an execute on a stored procedure containing a select).