skip to main content
Interface Provider API : Reference : OAIP_getDSInfo
 

OAIP_getDSInfo

This IP function is called to obtain information about the data source such as the SQL capabilities, limits on object names, and other information.
int OAIP_getDSInfo(
                    IP_HDBC hdbc,
                    short int iInfoType,
                    void * pInfoValue,
                    short int iInfoValueMax,
                    short int * piInfoValueLen)
Table 11. Parameters for OAIP_getDSInfo
Parameter
Type
Description
IN
hdbc
IP_HDBC
A pointer to the connection data you allocated.
iInfoType
short int
Type of information requested. If the IP does not handle the information request, the default value is used.
pInfoValue
void *
A pointer to the buffer in which to return the information. Some iInfoTypes require strings and others integers.
iInfoValueMax
int *
The size of the buffer.
OUT
piInfoValueLen
short int *
Returns the number of bytes written in the buffer.
RETURN
int
DAM_SUCCESS - on success
DAM_NOT_AVAILABLE - use the default value set by the OpenAccess SDK SQL engine.