SQLGetStmtOption returns the current setting of a statement option.
The following table describes the SQLSTATE and error values for SQLGetStmtOption.
| SQLSTATE | Error Value | Error Message |
|---|---|---|
| 01000 | -11001 | General warning |
| 24000 | -11031 | Invalid cursor state |
| S1000 | -11060 | General error |
| S1001 | -11061 | Memory-allocation failure |
| S1010 | -11067 | Function-sequence error |
| S1011 | -11068 | Operation invalid at this time |
| S1092 | -11073 | Option type out of range |
| S1109 | -11089 | Invalid cursor position |
| S1C00 | -11092 | Driver not capable |