SQLSetConnectOption (level one only)
SQLSetConnectOption sets options that govern aspects of connections.
The following table describes the SQLSTATE and error values
for SQLSetConnectOption.
| SQLSTATE | Error value | Error message |
|---|---|---|
| 01000 | -11001 | General warning |
| 01S02 | -11007 | Option value changed |
| 08002 | -11016 | Connection in use |
| 08003 | -11017 | Connection not open |
| 08S01 | -11020 | Communication-link failure |
| IM009 | -11048 | Unable to load translation shared library (DLL) |
| S1000 | -11060 | General error |
| S1001 | -11061 | Memory-allocation failure |
| S1009 | -11066 | Invalid argument value |
| S1010 | -11067 | Function-sequence error |
| S1011 | -11068 | Operation invalid at this time |
| S1092 | -11073 | Option type out of range |
| S1C00 | -11092 | Driver not capable |
| 08S01 | -11301 | A protocol error has been detected. Current connection is closed. |
| S1000 | -11320 | Syntax error |
| S1000 | -11323 | The statement contained an escape clause not supported by this database driver |
When fOption is a statement option, SQLSetConnectOption can return any SQLSTATE that SQLSetStmtOption returns.