Mapping di SQLSetParam

SQLSetParam continua a essere mappato su SQLBindParameter come in ODBC 2.x. Anche se concettualmente è simile a SQLBindParam, Gestione driver non esegue il mapping di SQLSetParam a SQLBindParam. Ciò è dovuto al fatto che alcuni ODBC 2 esistenti.I driver x usano il valore speciale bufferLength(SQL_SETPARAM_VALUE_MAX) generato da Gestione driver quando esegue il mapping di SQLSetParam su SQLBindParameter per determinare quando viene chiamato da 1.x applicazione ODBC.

Una chiamata a

SQLSetParam(hstmt, ipar, fCType, fSqlType, cbColDef, ibScale, rgbValue, pcbValue)  

avrà come risultato quanto segue:

SQLBindParameter(StatementHandle, ParameterNumber, SQL_PARAM_INPUT_OUTPUT, ValueType, ParameterType, ColumnSize, DecimalDigits, ParameterValuePtr, SQL_SETPARAM_VALUE_MAX, StrLen_or_IndPtr)