Previous Topic: Attach or Detach a Teradata Table or View to a MacroNext Topic: Teradata Common Property Pages


Attach or Detach a Teradata Table or View to a Stored Procedure

You can use the Stored Procedure Browser to see the tables and views that are attached to a stored procedure and to view the code that is used by a particular stored procedure template. You can also attach tables and views in your model to existing stored procedures.

To attach or detach a Teradata table or view to a stored procedure template

  1. Click the browser icon Macro/Stored Procedure Browser Icon on the Stored Procedure dialog.

    The Teradata Procedure Browser opens.

  2. Work with the following options:
    Template Name

    Lists the names of table-level stored procedure templates in the model.

    Template Code

    Displays the first line of the stored procedure template, which can include SQL statements and macros.

    Unattached Object

    Lists all tables and views in the model that are not attached to the selected stored procedure template. Use the arrow to attach the selected table or view to the selected stored procedure template.

    Attached Object

    Lists the tables and views that are attached to the selected stored procedure template. Use the arrow to detach the selected table or view from the selected stored procedure template.

    Template [Read Only]

    Displays the template code for the selected stored procedure template. You change the code for the stored procedure template in the Stored Procedure dialog.

    Template Expansion [Read Only]

    Displays the expanded code for the selected stored procedure template. Expanded code is the code that will appear in the schema script when the schema is generated.

  3. Click Close.

    The Teradata Procedure Browser closes.

More information:

View the Tables and Views Attached to a Stored Procedure

Attach a Table or View to a Stored Procedure

Detach a Table or View from a Stored Procedure