ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-32
SPELIB Interface
SP_SRV_GET_REQ_PROCESS_NAME
This function returns the name of the requester process that sent the stored procedure
execution request. The name is used if the server must open the requester to invoke
the call-back capability.
env
input
is a pointer to the environment object STRUCT.
req-process-name
output
is a pointer to the requester process name, in Guardian external form.
req-process-name-len
output
is a pointer to the length of the requester process name.
SP_SRV_GET_USER_NAMES
This function provides the logical username (if used by a client) and the Guardian
username of the of the client requesting the stored procedure execution request.
env
input/output
is a pointer to the environment object STRUCT.
logical-user-name
output
is a pointer to the logical username of the current user.
short int SP_SRV_GET_REQ_PROCESS_NAME
( void * env
, char * req-process-name
, short int * req-process-name-len
)
short int SP_SRV_GET_USER_NAMES
( void * env
, char * logical-user-name
, short int * logical-user-name-len
, short int * guardian-user-id
)