srv_rpcoptions

Returns run-time options for the current remote stored procedure.

Syntax

DBUSMALLINT srv_rpcoptions ( SRV_PROC * srvproc );

where

srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection (in this case, the handle that received the remote stored procedure). The structure contains the information that the ODS Library uses to manage communication and data between the Open Data Services server application and the client.

Returns

A bitmap that contains the run-time flags ORed together for the current remote stored procedure. If there isn't a current remote stored procedure, 0 is returned and a message is generated.

Remarks

The following table describes each run-time flag:

Run-time flag Description
SRV_NOMETADATA The client has requested results without metadata information. This flag is only used when the client is communicating with SQL Server. An Open Data Services application cannot omit the metadata information.
SRV_RECOMPILE The client has requested to recompile the remote stored procedure before executing it. This flag might or might not apply to an Open Data Services application.

See Also

This entry For information about
srv_rpcdb Returning the database name for the current remote stored procedure
srv_rpcname Returning the name for the current remote stored procedure
srv_rpcnumber Returning the number for the current remote stored procedure
srv_rpcowner Returning the owner of the current remote stored procedure
srv_rpcparams Returning the number of parameters for the current remote stored procedure