SqlNumRets%

Calculates the number of returned parameter values generated by a stored procedure or a remote stored procedure.

Syntax

SqlNumRets% ( sqlconn% )

where

sqlconn%
Is a SQL Server connection. The value of sqlconn% is returned by SqlOpen%.

Returns

The number of parameter values associated with the most recently executed stored procedure.

Remarks

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 SqlNumRets% 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).

See Also

SqlNextRow%, SqlResults%, SqlRetData$, SqlRetLen&, SqlRetName$, SqlRetType%