sqlipGetNumParams
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This method returns the number of parameter markers in the prepared statement. If the statement does not have any parameters, the method returns 0. OpenAccess SDK does not require the parameter indicator to be a question mark. The ODBC specification assumes the ‘?’ to be the parameter indicator.
int sqlipGetNumParams(xo_int piNumParams);
Parameters for sqlipGetNumParams
| Parameter | Type | Description |
| OUTPUT | ||
| piNumParams | xo_int | Number of parameters. A valid value is required otherwise the OpenAccess SDK layer will report a mismatch in the number of parameter values passed in and the number of parameters in the query reported by this method. |
| RETURN | ||
| int | OADS_SUCCESS OADS_ERROR |