16.20 - Calling Stored Procedures From External Stored Procedures - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

A C or C++ external stored procedure that does not use CLIv2 can invoke a stored procedure by calling the FNC_CallSP library function. Calling a stored procedure provides a way for external stored procedures to indirectly execute SQL statements.

For information on how to use CLIv2 to call a stored procedure from an external stored procedure, see Executing SQL in C/C++ External Stored Procedures.