Return Codes - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
16.20
Published
August 2020
Language
English (United States)
Last Update
2020-08-25
dita:mapPath
fxv1527114222338.ditamap
dita:ditavalPath
Audience_PDF_product_legacy_odbc_include.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

The following tables lists the ODBC API return codes for calls that execute SQL statements performing builds of user-defined functions:

Return Code Description
SQL_SUCCESS_WITH_INFO The build of the UDF was performed on the DBS and the UDF was created successfully. The output should be examined for possible warnings in the build of the UDF.
SQL_ERROR The build of the UDF failed on the DBS and the UDF was not created.

In both cases, the output from the build is available to the client as a sequence of diagnostic status records that may be retrieved using SQLGetDiagRecord() and SQLGetDiagField().

The first diagnostic record contains the status of the UDF creation from the DBS.

The subsequent diagnostic records contain all output from the build as message texts and repeat the SQLSTATE and native error code from the first record.