hi,
i got difficulties inserting a NULL-value into my table:
to tell ODBC, that i want to insert a NULL-value, i use a variable (SQLINTEGER) with a value of SQL_NULL_DATA as last argument to SQLBindParameter:
buffer = new char[255];
strcpy(buffer,"");
SQLINTEGER nInd = SQL_NO_DATA;
SQLPrepare(myHandle,"INSERT INTO TEST (col1) VALUES(?)",SQL_NTS);
SQLBindParameter(myHandle,firstcolumn, SQL_PARAM_INPUT, SQL_C_CHAR,SQL_VARCHAR, 0,0, (void*)buffer, 0, &nInd);
SQLExecute(myHandle);
when i call execute a get an access violation
any idea ?