Teradata Database Message 5568 - 17.10 - 5568 - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Database Messages

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1096-171K
Language
English (United States)
Message
SQL statement is not supported within a stored procedure.
Explanation
This error occurs when in one of the following situations: a. An unsupported SQL statement is specified in a stored procedure using the dynamic SQL feature of stored procedures. For instance, DATABASE statement, SET SQL statements, multi statement requests, CREATE USER/DATABASE statement without FROM clause, SELECT - INTO SQL or CALL SQL. This is a run-time error. b. An unsupported SQL statement is specified in a stored procedure. For instance, DATABASE statement, SET SQL statements, INSERT EXPLAIN or a CREATE USER/DATABASE statement without FROM clause. This is a compile-time error. ** ** Comment modified from DDL to SQL with an example for the ** same (INSERT EXPLAIN) **
Generated By
RES Modules.
For Whom
End user.
Notes
None
Remedy
Correct the SQL statement and, recreate the stored procedure if necessary.