SQLParamData is used with SQLPutData to supply parameter data when a statement executes.
The following table describes the SQLSTATE and error values for SQLParamData.
SQLSTATE | Error Value | Error Message |
---|---|---|
01000 | -11001 | General warning |
08S01 | -11020 | Communication-link failure |
22026 | -11029 | String data, length mismatch |
S1000 | -11060 | General error |
S1001 | -11061 | Memory-allocation failure |
S1008 | -11065 | Operation canceled |
S1010 | -11067 | Function-sequence error |
S1T00 | -11094 | Time-out expired |
S1C00 | -11300 | SQL_DEFAULT_PARAM not supported |
08S01 | -11301 | A protocol error has been detected. Current connection is closed. |
If SQLParamData is called while sending data for a parameter in an SQL statement, it can return any SQLSTATE that can be returned by the function that was called to execute the statement (SQLExecute or SQLExecDirect). If it is called while sending data for a column being updated or added with SQLSetPos, it can return any SQLSTATE that can be returned by SQLSetPos.
If SQLParamData is called while sending data for a parameter in an SQL statement, it can return any SQLSTATE that can be returned by the function that was called to execute the statement (SQLExecute or SQLExecDirect).
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]