SQLFreeHandle releases resources associated with a specific environment, connection, or statement handle. It replaces the ODBC 2.x functions: SQLFreeEnv, SQLFreeConnect, and SQLFreeStmt.
1 2 | SQLRETURN SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle); |
Keyword |
Description |
---|---|
HandleType |
The type of handle to be freed by SQLFreeHandle. The value must be one of the following:
If HandleType is not one of the preceding values, SQLFreeHandle returns SQL_INVALID_HANDLE. |
Handle |
The name of the handle to be freed. |
If SQLFreeHandle returns SQL_ERROR, the handle is still valid.
See Examples.