SQL Used to Create Stored Procedures - Advanced SQL Engine - Teradata Database

Database Introduction

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
jiv1600056352873.ditamap
dita:ditavalPath
jiv1600056352873.ditaval
dita:id
B035-1091
lifecycle
previous
Product Category
Teradata Vantageā„¢

Teradata SQL supports creating, modifying, dropping, renaming, and controlling privileges of stored procedures through DDL and DCL statements.

You can create or replace an external stored procedure through the COMPILE command in Basic Teradata Query (BTEQ), BTEQ for Microsoft Windows systems (BTEQWIN), and Teradata Studio. You must specify a source file as input for the COMPILE command.

Stored procedures do not need to be compiled, but external stored procedures do.

You can also create or modify a stored procedures using the CREATE PROCEDURE or REPLACE PROCEDURE statement from CLIv2, ODBC, and JDBC applications.