ABIGetSessionCount
ABIGetSessionCount#
Syntax#
int ABIGetSessionCount (
unsigned int **aExecutingOnly );
Argument#
Data Type | Argument | In/Output | Description |
---|---|---|---|
unsigned int | aExecutingOnly | Input | 0: Selects all sessions 1: Selects only active sessions |
Return Values#
If successful, returns the total number of sessions in the Altibase server; otherwise, returns an error code.
Description#
This function selects the total number of sessions currently existing in the Altibase server or the number of active sessions.
Example#
Please refer to sample_2.c for an application related to this function.
int sSessionCount;
int sActiveSessionCount;
/* Selects the total number of sessions */
sSessionCount = ABIGetSessionCount( 0 );
/* Selects the number of active sessions */
sActiveSessionCount = ABIGetSessionCount( 1 );