Creating a Macro - Teradata Studio

Teradata Studio User Guide

Product
Teradata Studio
Release Number
15.11
Published
May 2016
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
bpb1467322243715.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2041
lifecycle
previous
Product Category
Teradata Tools and Utilities
Macros are SQL statements that the server stores and executes. Macros provide an easy way to execute frequently used SQL operations.
  1. In the Navigator, expand the Databases, right-click a database or user, and click Show Macros. A list of the macros defined in the connected system appears in the Object List Viewer. The list is filtered according to any filters you have applied.
  2. In the Object List Viewer toolbar, click .

    A Create Macro property form opens in the Details view.

  3. In the form, enter values for the new macro.
  4. [Optional] Click the SQL category to see the SQL code that will be executed on the connected system to create the new macro.
  5. Click Commit.
  6. Click OK. The property form shows the properties of the new macro.