16.20 - Processing an SQL CREATE PROCEDURE Request - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Teradata Database
Teradata Vantage NewSQL Engine
Release Number
March 2019
Content Type
Programming Reference
Publication ID
English (United States)

A compiler in Teradata 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. Teradata 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.