Defining Teradata Stored Procedures

The following properties are applicable to a Teradata Stored Procedure object.

Tab

Property

Description

Additional Information

  Name Specifies the name of the stored procedure  
  Database Specifies the database or user to which the table belongs  
  Type Specifies whether the function is applied at model level or table level Model Level: Indicates that the object is applied for database models

Table Level: Indicates that the object is applied for database tables

  Procedure Type Specifies the stored procedure type

SQL: Indicates that the procedure is of SQL form

External: Indicates that the procedure is of External form

  Use Replace Syntax Specifies whether the REPLACE syntax is used  
  Attach to New Specifies whether the stored procedure must be applied to new tables upon creation  
  Generate Specifies whether a DDL statement is generated for the object during forward engineering  
  Generate As Pre-Script Specifies whether the DDL statement is generated as pre-script Pre-Creation: Indicates that in the DDL, the stored procedure code is inserted before the object creation statements.

Post-Creation: Indicates that in the DDL, the stored procedure code is inserted after the object creation statements.

Parameters Parameters Specifies the parameters associated with the selected stored procedure  
Type Specifies the type of the parameter

Input: Indicates that the parameter is input only. This is the default parameter type.

Output: Indicates that the parameter is output only

Input Output: Indicates that the parameter can be input and output

Physical Data Type Specifies the user-defined data type or the data type in use  
Character Set Specifies the type of character set that is used Available options are: Latin, Unicode, Kanji-Shift JIS, and Graphic
Is Variant Type Specifies whether the parameter is variant type  
Character Case Specifies how Teradata considers the case of the values in database fields for the selected column during processing

Available only if Physical Data Type is a Character data type. For example, CHAR, CHAR(), CHAR VARYING(), and CHARACTER.

Case-Specific: Indicates that Teradata considers the case of the value strings for processing.

None, Not Case-Specific: Indicates that Teradata does not consider the case of value strings for processing.

Options Language Specifies the language in which the function is written Available options are: C, CPP< and Java.
Parameter Style Specifies the style of the parameters  
SQL Data Access Specifies whether the SQL statements are permitted in the function  
Dynamic Result Sets Specifies the number of Dynamic Results Sets for the procedure  
SQL Security Mode Specifies the type of security authorization

Creator: Indicates that the privileges of the creator of the procedure is assigned

Definer: Indicates that the privileges of the definer of the procedure is assigned

Invoker: Indicates that the privileges possessed by the user at the top of the current execution stack is assigned

Owner: Indicates that the privileges owned by the owner of the procedure is assigned

Global_Persistent_Data_Set Specifies the GLOP data set  
Debug Specifies whether debug symbols are to be produced  
Compile Specifies the mode in which the function should be compiled

Compile and Build: Indicates that the code source of the procedure is compiled and the library files (.so or .dll) are created and distributed to all nodes of the system

Compile Only: Indicates that the system only compiles the code source of the procedure

Execute Specifies the mode in which the function should be executed

Protected: Indicates that the procedure is executed in protected mode

Not Protected: Indicates that the procedure is executed in unprotected mode

Store Source Specifies whether the source of the procedure must be stored  
Return Warnings Specifies whether procedure compilation errors or warnings must be reported as part of the success response  
Source Files   Specifies the source files for the function  
External Delimiter Specifies the delimiting character for the External Name clause  
External Name Specifies an identifier for the entry point name or a string to identify the path to it  
Entry Point Name Specifies the name of the entry point of the object  
External Security Type Specifies the type of external routine for authorization Definer: Indicates that the privileges of the definer of the procedure is assigned

Invoker: Indicates that the privileges possessed by the user at the top of the current execution stack is assigned

External Security Authorization Specifies the authorizations for users and user permissions  
Code   Specifies the template code of the stored procedure that can include SQL statements and macros  
Expanded Code Expanded Code (Read Only) Specifies the expanded code of the stored procedure  
Context Specifies the table or view for which the expanded code must be generated  
Comments   Specifies comments about the stored procedure