Determines the length of a return-parameter value generated by a stored procedure or a remote stored procedure.
DBINT dbretlen (
PDBPROCESS dbproc,
INT retnum );
The length of the specified returned value. If retnum is out of range, dbretlen returns -1. If the return value is null, dbretlen returns 0.
For more information about stored procedure return parameters, see dbretdata.
The server returns stored procedure information (including any return status and parameter values) immediately after returning all normal results for that stored procedure. Process the normal results, and then call dbretlen after dbresults returns NO_MORE_RPC_RESULTS (for all stored procedures in a batch except the last one) or NO_MORE_RESULTS (for a single stored procedure, or for the last stored procedure in a batch).
dbnextrow | dbrettype |
dbnumrets | dbrpcinit |
dbresults | dbrpcparam |
dbretdata |