Processing an SQL CREATE PROCEDURE Request | Teradata Vantage - Processing an SQL CREATE PROCEDURE Request - 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
ft:locale
en-US
ft:lastEdition
2024-12-13
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

A compiler in the database performs syntax and semantic checks on the source text of the SQL procedure.

The processing by the Parser involves the following stages in addition to the routine for creating any database object.

  1. The database validates the SQL statements, including any expressions, inside the procedure body.
  2. The errors or warnings encountered during validation are treated as procedure compilation errors or warnings. These are reported to the client utility as part of the success response.
  3. On successful creation of a procedure, a success response is returned to the client application with warning code = 0.
  4. If a failure is encountered, a failure parcel is returned. An error is treated as a failure. The current transaction is rolled back.