Teradata Extensions to the ODBC Standard

ODBC Driver for Teradata® User Guide

brand
Teradata Tools and Utilities
prodname
ODBC Driver for Teradata
vrm_release
16.20
category
User Guide
featnum
B035-2526-108K

This section describes extensions above and beyond ODBC that ODBC Driver for Teradata supports for Teradata Database. The symbolic names associated with the extensions are defined in the tdsql.h file in <InstallDir> /include.

When using driver-defined attributes it is necessary to indicate the type of attribute to the Driver Manager so it can properly pass the value to or from the driver. This is typically done by setting the BufferLength argument ODBC API function call getting or setting the value. For example, BufferLength should be SQL_IS_SMALLINT for a Teradata ODBC column attribute like SQL_DESC_TD_ODBC_TYPE.