Define Teradata Stored Procedures

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

  1. Click Stored Procedures on the Database menu.

    The Stored Procedure Editor opens.

  2. Select a stored procedure and work with the following options:

    Note: Click New <New> icon in property editors on the toolbar to create a new authorization.

  3. Work with the following field on the General tab:
  4. Work with the other tabs in the editor to access additional design features, for example:
  5. (Optional) Click the Comment tab and enter any comments you want associated with the stored procedure.
  6. (Optional) Click the UDP tab to work with user-defined properties for the stored procedure.
  7. Click Close.

    The Stored Procedure Editor closes.

More information:

Specify Data Access Options for a Stored Procedure

Specify Source Files for a Physical Object

Specify External Files for a Physical Object

View Parameters Associated with the Selected Function

Edit Code in a Teradata Property Editor

View Expanded Code in a Property Editor

Add Permissions in a Teradata Property Editor

Add a Comment in a Property Editor

Change the Object Creation Order in a Property Editor

Add a UDP in a Physical Property Editor


Copyright © 2009 CA. All rights reserved. Email CA about this topic