Debugging an External Stored Procedure | Teradata Vantage - Debugging an External Stored Procedure - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢
When debugging an external stored procedure, be sure your tests include the following:
  • Limit checks on input values
  • Limit checks on return values
  • Proper handling of NULLs
  • Division by zero
  • All memory acquired by malloc is freed
  • All open operating system handles are released/closed

The Teradata C/C++ UDF Debugger allows external stored procedures to be debugged within the database on a development or test system. The debugger only supports C and C++ external stored procedures. For more information on the Teradata C/C++ UDF Debugger, see C/C++ Command-line Debugging for UDFs.

For other external stored procedures, debugging is limited after they are installed in the database. You can use other debugging tools to verify their functionality, or run them on a standalone virtual machine and debug the UDF server processes that executes them.