The following features are available in several tools:
If a tool generates SQL statements, then the Show SQL pushbutton will be available on the tool interface. Similarly, a tool that generates DB2 commands will have a Show Command pushbutton available. Clicking one of these pushbuttons allows you to:
To show the SQL statements or DB2 commands:
Saving SQL statements and DB2 commands is particularly helpful if the SQL statements or DB2 commands are complex.
When you use the Show Command or Show SQL feature, you can either create new scripts which you can later edit, or you can close the dialog box to return to the original dialog to make changes. If you click the Create Script pushbutton, the New Command Script window appears. There you can edit the SQL statements or the DB2 commands before saving the script.
Show Related shows the immediate relationship between tables, indexes, views, aliases, triggers, table spaces, User Defined Functions, and User Defined Types. For example, if you select a table and you choose to show related views, you only see any views that are based directly on the table. You would not see any views that are based on the related views because those views were not created directly from the table.
Showing related objects helps you to:
To use the Show Related feature:
You can click the right mouse button on a related object on the selected Page and select Show Related from the pop-up menu. The selected Page changes to show the objects related to your latest selection. You can also click on the down arrow next to the selected object to display a list of objects you previously selected to show relationships.
The Generate DDL function allows you to re-create and save in a script file the DDL and SQL statements and statistics of:
This allows you to:
Clicking the Generate DDL pushbutton, brings up the Show Command window with statements generated by a utility known as the db2look utility. From the Show Command window, you can click the Save Script pushbutton to save the statements. The statements are put into a script. If you click the Generate button, the Run Script window opens.
Note: | Generating DDL statements is different when working with the Control Center for System 390. See the help information for specifics on those differences. |
You can select whether you want to generate DDL statements for selected schemas or all schemas within the database. You can then edit the script if you want to make changes before you use the script in a production environment. To create identical databases using the generated DDL statements, you would simply use the script which you generated and run it in the new environment.
To generate DDL statements:
In the Control Center, you can filter information that is displayed in the Contents pane, or you can filter information that is retrieved from a table as an actual result set. You can limit the number of objects that are displayed or the number of objects that are returned by creating filters for one or more objects. Once you have set the filter, you need to clear or delete the filter if you want to display all the objects in the tree once again.
To reduce the number of objects that appear in the Contents pane for more manageable administration:
When you later select an object to view its contents, the filter you have associated with the object limits the view according to the criteria you set earlier.
To reduce the number of rows returned in a query and improve the response time, you can define the output, or the result set that shows in the Contents pane when selecting an object.
To define a filter to retrieve a specific set of data:
To automatically invoke this filter notebook based on numbers of rows, select Tools from the menu bar, and select Tools Settings from the popup menu. The Select filtering when numbers of row exceeds checkbox allows you to predefine a threshold of returned rows from any selection. When the threshold is reached, the Filter notebook appears so that you can limit the current retrieval based on the defined criteria. This is especially useful when a table has grown unexpectedly and was previously unfiltered. Depending on your platform, and your data, you could be attempting to return millions of rows, when you need only a subset of rows.
Extensive help information is provided with the administration tools. A help button exists on all dialog boxes as well as on the menu toolbar. You can get general help as well as help on how to fill out the fields and perform tasks. From the help menus, you can also access the index of terms or the reference information and the information provided in the product manuals.