Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.49 KB

SQLFreeHandle.md

File metadata and controls

53 lines (39 loc) · 1.49 KB

Home

Function name : SQLFreeHandle

Group: ODBC API - Library: odbc32


SQLFreeHandle frees resources associated with a specific environment, connection, statement, or descriptor handle.


Code examples:

Enumerating ODBC Data Sources available on the local computer
Testing an ODBC connection for supporting specific functionality
Using vendor-neutral SQL constructs
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Retrieveing general information about the driver and data source associated with an ODBC connection
Establishing connection using the SQLDriverConnect
Obtaining list of tables stored in an ODBC Data Source

Declaration:

SQLRETURN SQLFreeHandle(
	SQLSMALLINT HandleType,
	SQLHANDLE   Handle);  

FoxPro declaration:

DECLARE SHORT SQLFreeHandle IN odbc32;
	INTEGER HandleType,;
	INTEGER Handle  

Parameters:

HandleType [Input] The type of handle to be freed by SQLFreeHandle.

Handle [Input] The handle to be freed.


Return value:

SQL_SUCCESS (0), SQL_ERROR, or SQL_INVALID_HANDLE.