16.20 - Differences Between CREATE PROCEDURE and REPLACE PROCEDURE - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)
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.