Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.42 KB

SQLFreeEnv.md

File metadata and controls

48 lines (35 loc) · 1.42 KB

Home

Function name : SQLFreeEnv

Group: ODBC API - Library: odbc32


In ODBC 3.x, the ODBC 2.0 function SQLFreeEnv has been replaced by SQLFreeHandle.


Code examples:

Enumerating ODBC Data Sources available on the local computer
Enumerating ODBC drivers 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 SQLFreeEnv(
    SQLHANDLE  Handle);  

FoxPro declaration:

DECLARE SHORT SQLFreeEnv IN odbc32;
	INTEGER env  

Parameters:

Handle [Input] The handle to be freed.


Return value:

SQL_SUCCESS (0), SQL_ERROR, or SQL_INVALID_HANDLE.