Determine whether the current command can return rows.
RETCODE DBCMDROW(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, to indicate whether the command can return rows.
DBCMDROW determines whether the command currently being processed by dbresults is one that can return rows—that is, a Transact-SQL select statement or an execute on a stored procedure containing a select. The application can call it after dbresults returns SUCCEED.
Even if DBCMDROW macro returns SUCCEED, the command does not return any rows if none have qualified. To determine whether any rows are actually being returned, use DBROWS.