A stored procedure is a pre-compiled collection of Transact-SQL statements that are stored under a name and processed as a unit. You can use the Stored Procedure editor to define database-level and table-level stored procedures in a Teradata physical model. The Code type determines if the stored procedure is intended to be a single procedure, generated for the entire database, or a set of procedures, generated once for each associated table.
The order in which you generate stored procedures for your database is important. The stored procedure code is generated according to the order in the Teradata Stored Procedures Editor.
To define Teradata stored procedures
The Teradata Stored Procedure Editor opens.
Note: Click New on the toolbar to create a new stored procedure. Use the Enter filter text text box to filter a very large list of stored procedures to quickly locate the one you want to work with.
Specifies the name of the stored procedure.
Specifies the database or user to which the table belongs. Select from the drop-down list.
Specifies the type of the object. Select from the drop-down list. Valid values are: Model Level or Table Level.
Specifies the type of the stored procedure. Select from the drop-down list. Valid values are: SQL or External.
Lets you select whether Forward Engineering will use the REPLACE command instead of the CREATE command.
Specifies if upon creating a new (table-level only) table, this script will automatically be attached to it.
Generates DDL for this object during Forward Engineering.
Specifies whether the DDL for this object must be generated as pre-script. Valid values are true or false.
The Teradata Stored Procedure Editor closes.
Copyright © 2015 CA Technologies.
All rights reserved.
|
|