Returning Before an Outstanding Request Completes - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

An external stored procedure that returns from the C or C++ function before an outstanding request is complete generates a 7835 failure, aborting the transaction and the external stored procedure and any nested stored procedures if the external stored procedure was in a nested call. The failure is returned to the client application.

The best practice for an external stored procedure is to complete any outstanding request before returning from the function, clean up any logged on connections, and release allocated memory.