In SQL Server 6.5, you can pass stored procedure parameters when you open a cursor by calling the SqlRpcInit function and the SqlRpcParam function.
The SqlRpcInit function has an options& parameter: SQLRPCCURSOR. Use SQLRPCCURSOR to specify the initialization of an input-parameter list for a subsequent cursor-open operation on a stored procedure. When you use SQLRPCCURSOR, you must set the rpcname$ parameter to an empty string.
No pending remote procedure calls (RPCs) can exist when you call SqlRpcInit with an options& of SQLRPCCURSOR. The SqlRpcInit function returns FAIL if pending RPCs have been initiated.
You can call the SqlRpcParam function to set the value for each stored procedure parameter that was used in the process of opening a cursor. Stored procedure parameters are no longer required to be constants, and they can be passed as follows.