Structure of an OLE DB Error
An OLE DB error has the following structure:
Figure 5:βOLE DB Error StructureA 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.