Condividi tramite


SYS(3053) - ODBC Environment Handle

Returns the ODBC environment handle.

SYS(3053)

Return Values

Character

Remarks

If ODBC isn't loaded, SYS(3053) loads it and returns the ODBC environment handle.

The environment handle returned by SYS(3053) provides access to ODBC through ODBC API calls. Access to the ODBC API is available in Visual FoxPro through DECLARE - DLL, and through external Visual FoxPro API library routines.

Only one ODBC environment handle should be used at any time. A Visual FoxPro program using ODBC calls should use SYS(3053) to get the ODBC environment handle rather than reallocating and freeing the ODBC environment handle through ODBC API calls.

Exercise care when manipulating an ODBC environment handle. For further information about the ODBC API, see the Microsoft ODBC SDK documentation.

See Also

DECLARE - DLL | SET LIBRARY | Execution of ODBC Extensions to SQL | Read ODBC Registry Values