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

Teradata Vantage™ - SQL External Routine Programming

Advanced SQL Engine
Teradata Database
Release Number
Release Date
April 2020
Content Type
Programming Reference
Publication ID
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.