Structure of an OLE DB Error - 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

Structure of an OLE DB Error

An OLE DB error has the following structure:

Figure 5: OLE DB Error Structure

A consumer can retrieve information about the error using the IError interface.

A consumer can retrieve errors returned from Teradata Database through the Custom Error Object via the ISQLErrorInfo interface. Using methods of this interface, the consumer can retrieve the SQLState and Native Error Code of the error generated by Teradata Database.