SQLFreeStmt

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

The following cursor related options are supported:

SQL_CLOSE
SQL_DROP