Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

OASQLIP_get_numparams

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

This function returns the number of parameter markers in the prepared statement. If the statement does not have any parameters, the function 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 OASQLIP_get_numparams(
SQLIP_HSTMT sqlip_hstmt, 
OADS_INTEGER * piNumParams)

Parameters for OASQLIP_get_numparams

Parameter Type Description
INPUT    
sqlip_hstmt SQLIP_HSTMT Statement handle
OUTPUT    
piNumParams OADS_INTEGER * Number of parameters. A valid value is required. Otherwise, the OpenAccess SDK layer reports 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
TitleResults for “How to create a CRG?”Also Available inAlert