GetOdbcHenv - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Product
Teradata Meta Data Services
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
Product Category
Teradata Tools and Utilities

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();