hEnv Property (Remote Data)

       

Returns a value corresponding to the ODBC environment handle.

Syntax

object.hEnv

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The hEnv property returns a Long value containing the ODBC environment handle created by the ODBC driver manager corresponding to the specified rdoEnvironment object.

Remarks

This handle can be used to execute ODBC functions that require an ODBC hEnv environment handle.

Note   While it is possible to execute ODBC API functions using the ODBC hEnv, hDbc, and hStmt handles, it is recommended that you do so with caution. Improper use of arbitrary ODBC API functions using these handles can result in unpredictable behavior. You should not attempt to save this handle in a variable for use at a later time as the value is subject to change.