Data Types - OLE DB Provider for Teradata

OLE DB Provider for Teradata User Guide

Product
OLE DB Provider for Teradata
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
dita:id
B035-2498
Product Category
Teradata Tools and Utilities

Data Types

The following table specifies the binding of the OLE DB types to Teradata data types.

 

Table 44: OLE DB Provider for Teradata to Teradata Data Type Mappings 

OLE DB Data Type Indicator

Teradata Data Type

DBTYPE_BYTES

BYTE

DBTYPE_BYTES

VARBYTE

DBTYPE_BYTES

INTERVAL

DBTYPE_BYTES

BLOB

DBTYPE_DBDATE

DATE

DBTYPE_DBTIME

TIME

DBTYPE_I1

BYTEINT

DBTYPE_I2

SMALLINT

DBTYPE_I4

INTEGER

DBTYPE_I8

BIGINT

DBTYPE_NUMERIC

DECIMAL

DBTYPE_R8

FLOAT

DBTYPE_STR, DBTYPE_WSTR*

CHAR

DBTYPE_STR, DBTYPE_WSTR*

VARCHAR

DBTYPE_STR, DBTYPE_WSTR*

CLOB

DBTYPE_TIMESTAMP

TIMESTAMP

* The type associated with CHAR, VARCHAR, and CLOB is DBTYPE_STR if the session character set is ASCII, KANJIJIS_OS. If the session character set is either UTF8 or UTF16, then the type associated is DBTYPE_WSTR.