SQLNumResultCols (core level only)
SQLNumResultCols returns the number of columns in a result set.
The following table describes the SQLSTATE and error values
for SQLNumResultCols.
SQLSTATE | Error value | Error message |
---|---|---|
01000 | -11001 | General warning |
S1000 | -11060 | General error |
S1001 | -11061 | Memory-allocation failure |
S1008 | -11065 | Operation canceled |
S1010 | -11067 | Function-sequence error |
S1T00 | -11094 | Time-out expired |
SQLNumResultCols can return any SQLSTATE that SQLPrepare or SQLExecute can return when SQLNumResultCols is called after SQLPrepare and before SQLExecute is called, depending on when the data source evaluates the SQL statement associated with the hstmt.