Create, Use, and Migrate UDFs and External Stored Procedures in VantageCloud Lake - Teradata VantageCloud Lake

Lake - Using Queries, UDFs, and External Stored Procedures

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-08-12
dita:mapPath
vgj1683671089901.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
vgj1683671089901

Teradata provides a wide range of built-in functions that address the needs of typical users. In those cases when standard functions are inadequate, Teradata allows you to define user-defined functions (UDFs) and external stored procedures that extend the capability of normal SQL within the database. You can create your own UDFs and external stored procedures or use UDFs and external stored procedures that are provided by Teradata.

To create and use UDFs and external stored procedures, you need to use the External Routine Installation Tool and External Routine Migration Tool. Users must authenticate themselves using a Personal Access Token and the private key used to generate the token before they can create or use UDFs and external stored procedures. Follow the instructions for Create a Personal Access Token and store the PAT with the private key for use during the migration of SQL scripts and installation of UDFs and external stored procedures.

Use the XRMigrationTool to migrate the SQL scripts that create UDFs and external stored procedures for VantageCloud Lake. Once migrated, run the scripts to install the UDFs and external stored procedures. Follow the instructions for Run the External Routine Migration Tool and Run Migrated Scripts to learn how to migrate and run the scripts.