Function and Usage of REPLACE PROCEDURE Requests | Teradata Vantage - Function of REPLACE PROCEDURE Requests - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

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
2024-10-04
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

REPLACE PROCEDURE executes as a DROP PROCEDURE request followed by a CREATE PROCEDURE request except for the handling of the privileges granted to the original procedure. The database retains all of the privileges that were granted directly on the original procedure.

If the specified procedure does not exist, REPLACE PROCEDURE has the same effect as performing a CREATE PROCEDURE statement.

If an error occurs during the replacement and the operation fails, the original procedure remains in place as it was prior to specifying the REPLACE PROCEDURE: the procedure is not dropped. This is analogous to rolling back the operation.