Differences Between CREATE PROCEDURE and REPLACE PROCEDURE - 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
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™
You can create or replace an external procedure using the same syntax except for the keywords CREATE and REPLACE.
  • If you specify CREATE, the procedure must not exist.
  • If you specify REPLACE, you can either create a new procedure or replace an existing procedure.

When you replace an existing external procedure, the replaced procedure does not retain the EXECUTE NOT PROTECTED attribute if one had previously been set using the ALTER PROCEDURE statement (see ALTER PROCEDURE (External Form)).

The advantage to using REPLACE is that you can avoid having to grant the EXECUTE privilege again to all users who already had that privilege on the procedure.