SQLFreeStmt (core level only)

SQLFreeStmt stops the processing that is associated with a specific hstmt, closes any open cursors that are associated with the hstmt, discards pending results, and, optionally, frees all resources associated with the statement handle.

The following table describes the SQLSTATE and error values for SQLFreeStmt.
SQLSTATE Error value Error message
01000 -11001 General warning
S1000 -11060 General error
S1001 -11061 Memory-allocation failure
S1010 -11067 Function-sequence error
S1092 -11073 Option type out of range