Determines the length of a return-parameter value generated by a stored procedure or a remote stored procedure.
SqlRetLen& ( sqlconn%, retnum% )
where
The length of the specified returned value. If retnum% is out of range, SqlRetLen& returns -1. If the return value is null, SqlRetLen& returns 0.
For more information about stored procedure return parameters, see "SqlRetData$."
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 SqlRetLen& after SqlResults% returns NOMORERPCRESULTS (for all stored procedures in a batch except the last one) or NOMORERESULTS (for a single stored procedure, or for the last stored procedure in a batch).
SqlNextRow%, SqlNumRets%, SqlResults%, SqlRetData$, SqlRetName$, SqlRetType%