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 to your database is important. The stored procedure code is generated according to the order in the Stored Procedures Editor.
To define Teradata stored procedures
The Stored Procedure Editor opens.
Note: Click New
on the toolbar to create a new authorization.
Specifies the name of the stored procedure.
Specifies the database or user to which the table belongs. Select from the drop-down.
Specifies the type of the stored procedure. Select from the drop-down list. Valid values are: Model Level or Table Level.
Specifies if upon creating a new (table-level only) table, this script will automatically be attached to it.
Lets you select whether Forward Engineering will use the REPLACE command instead of the CREATE command.
Generates DDL for this object during Forward Engineering.
Specifies the type of stored procedure. Select from the drop-down. Valid values are: SQL or External.
The Stored Procedure Editor closes.
| Copyright © 2009 CA. All rights reserved. | Email CA about this topic |