Export (0) Print
Expand All

srv_setRPC

SQL Server 2000

This function allows setting individual RPC values (including parameters).

Syntax

void srv_setRPC(
SRV_PROC * srvproc,
int iItem,
ULONG ulValue,
Void * pValue );

Arguments

srvproc

Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The structure contains all information the ODS Library needs to manage communication and data between the Open Data Services server application and the client.

iItem

Is the RPC value to set (see Remarks for supported values).

ulValue

Is the value to which to set the item (where applicable). If ulValue is SRV_NULLTERM, then the RPC value is assumed to be null-terminated.

pValue

Is a pointer to the value to which to set the item (where applicable).

Remarks

This function is used to set individual RPC item values when RPC processing is in progress.


iItem
Applicable parameters
Description
SRV_RPC_ACTIVEFLAG ulValue Sets the RPC active flag to ulValue. This flag indicates that an RPC is active.
SRV_RPC_SERVER ulValue pValue Sets the RPC server name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue.
SRV_RPC_DATABASE ulValue pValue Sets the RPC database name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue.
SRV_RPC_OWNER ulValue pValue Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue.
SRV_RPC_OWNER ulValue pValue Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue.
SRV_RPC_OWNER ulValue pValue Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue.
SRV_RPC_PROCNUMBER ulValue Sets the RPC procedure number value.
SRV_RPC_PROCNUMBER ulValue Sets the RPC procedure line number value.
SRV_RPC_OPTIONS ulValue Sets the RPC option flag. The option flag is 16 bits in size. Bit 0 is set if the RPC is being sent with the recompile option. Bit 1 is set if xp_cursor operations are not supposed to return meta data. Bits 2 through 15 are reserved and should be set to zero.
SRV_RPC_NUMPARAMS ulValue Specifies how many RPC parameters are contained within this RPC. This value must be set before setting any parameter values.
SRV_RPC_RPCPARAMS ulValue pValue Sets the RPC parameter value. The RPC parameter to set is specified in ulValue and the RPC parameter data is contained in the structure, pValue. The RPC parameter structure definition is defined in the structure, SRV_RPCp, which is defined in the Srvstruc.h header file.

Show:
© 2014 Microsoft