GetOdbcHenv
Purpose
The CMetaRepository class GetOdbcHenv function returns the ODBC HENV pointer created by Meta Data Services.
Description
ODBC only permits one HENV pointer per process. If a client application is using ODBC separately from MDS, it can create the HENV pointer and pass it to MDS in the Initialize function.
If henv is SQL_NULL_HENV on Initialize, MDS will create a HENV pointer. The CMetaRepository.GetOdbcHenv function can be used to get the HENV pointer created by MDS.
Syntax
HENV GetOdbcHenv();