Hello All,

I am writing an ODBC driver. It is not a unicode driver and it is complaint to ODBC version 2.5.

I’ve met a problem with call to SQLBindParameter.

My test application fails on the call:
SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_WCHAR, SQL_WVARCHAR,4, 0, buff, 0, &len);

with error:
"[Microsoft][ODBC Driver Manager] SQL data type out of range"

ODBC manager fails BEFORE calling this function from the driver.

The same call with SQL_C_CHAR and SQL_VARCHAR works fine.
The same call to Access’ odbc driver works fine.

Can any one help me, please ?