SQLAllocStmt (core level only)
SQLAllocStmt allocates memory for a statement handle and associates the statement handle with the connection that hdbc specifies.
An application must call SQLAllocStmt before it submits SQL statements.
The following table describes the
SQLSTATE and error values for SQLAllocStmt.
SQLSTATE | Error value | Error message |
---|---|---|
01000 | -11001 | General warning |
08003 | -11017 | Connection not open |
S1000 | -11060 | General error |
S1001 | -11061 | Memory-allocation failure |
S1009 | -11066 | Invalid argument value |
08S01 | -11301 | A protocol error has been detected. Current connection is closed. |