OASQLIP_get_ds_info
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This function is called to obtain information about the data source such as the SQL capabilities, limits on object names, and other information that is needed by client API functions such as SQLGetInfo.
int OASQLIP_get_ds_info(
SQLIP_HDBC sqlip_hdbc,
OADS_USMALLINT iInfoType,
OADS_POINTER InfoValuePtr,
OADS_SMALLINT iInfoValueMax,
OADS_POINTER pInfoValue,
OADS_SMALLINT * piInfoValueLen)
Parameters for OASQLIP_get_ds_info
| Parameter | Type | Description |
| INPUT | ||
| sqlip_hdbc | SQLIP_HDBC | Connection handle. |
| iInfoType | OADS_USMALLINT | Requested information type. |
| iInfoValueMax | OADS_SMALLINT | Size of the buffer pointed to by InfoValuePtr (bytes). |
| OUTPUT | ||
| pInfoValue | OADS_POINTER | Buffer for returning the requested information in. The information can be a Unicode string or an integer. |
| piInfoValueLen | OADS_SMALLINT * | The number of bytes written to pInfoValue. |
| InfoValuePtr | OADS_POINTER | Integer buffer to use for returning numeric attribute values. |
| RETURN | ||
| int | OADS_SUCCESS OADS_ERROR – error allocating a connection handle |