Previous Topic

Next Topic

Book Contents

Book Index

Database Explorer

Once you sign onto a database, you will be shown the Database Explorer window. This shows you all the objects in your database.

What you see in this window will depend on the type of database you are connecting to, and how AQT has been customized . . . the following description is generic, to give a general guide.

Database Explorer

The Database Explorer has three panes:

Notes:

Database Explorer Toolbar

By default, the Database Explorer toolbar will have the following functions:

Database Explorer toolbar

Other items can be added to this toolbar - you may consider this if you use other functions on a common basis. See Customizing your Toolbars for more on this.

Some tasks available in the Database Explorer have shortcut keys.

Using the Object Tree

The object tree shows the different types of objects in your database (Tables, View etc), each represented by a particular icon.

If the object tree shows you only "Tables and Views" and "System Tables" then either you are using a database which doesn't have system tables (eg. Access) or you have not enabled the system-table query feature. This setting is controlled by Options > General > Table Information > Get Table Information from.

Object Tree Toolbar

Above the Object Tree is the following toolbar:

If you are showing Favorites, rather than Objects, this toolbar will be:

DB Exp Toolbar - Tree Fav

These buttons allow you to:

Showing Objects, Favorites or Queries

The left pane of the Database Explorer window can show either Objects (as per the above screen-shot), Favorites or Queries. Click on the toolbar buttons Objects / Favorites / Queries to select what is shown in this pane.

If you select neither, the left pane will not be shown. This can be useful for increasing the screen real-estate.

Using the Object List

The Object List shows all the objects within the schema that you selected in the object tree.

Clicking on an object in the Object List will display the details of that object in the Object Details display.

Using the Object Details

Sometimes, what is displayed in the Details Display are themselves database objects (indexes, tables etc). This can easily be seen, as the icons will be displayed with the objects. In this case you can right-click on an object to drill down and display the properties of that object.

The Details Display can also be used to display text (such as the definition of a View, Stored Procedure, Trigger etc). In this case a syntax-highlighting text-box will be superimposed on the Details Display. There is no limit on the quantity of text that can be displayed here. Right-click to see actions available for this text: Print, Copy, Find or Save to File.

If the object in the right grid is a table or view, you can display the contents of this by double-clicking it, or clicking on it and hitting F11.

You can expand the row width on the right-grid with View > Right Grid > Expand Rows. This is useful on displays such as DB2 Package statements.

Using the Administration Toolbar

If the Administration Component is active for your database, you will see the Administration Toolbar at the top of the Object List in the middle grid. Once you click on an object, this toolbar will display a number of icons. You may or may not see all these icons, depending on how the Administration Component has been configured for your database.

The create object icon will always be active. The other icons will only be active once you have clicked on an object. Depending on what type of object you have clicked on (table, view etc), different icons will be displayed.

Other Database Explorer functions

Object List and Object Details displays

The section Grid usability concepts explains many useful functions available in the grids. Others are explained below.

Font

The font used in the Database Explorer window can be set in Options > Table Information.

Sorting

You can sort the contents of a grid by clicking on the column header.

Copying

You can copy the contents of a number of cells by selecting the cells then hitting Ctrl+C or the Copy icon. This is useful to (for instance) copy the names of all your tables (to the clipboard). You can do more advanced copying with the Text Generator feature.

Object Cache / History

The Database Explorer caches the information displayed in the Object List. If you are moving around the Database Explorer, this will save AQT from having to continually fetch this information from the database. This can give a significant performance if you are dealing with large databases.

When AQT is displaying information from the cache, you will see the following message in the status-bar:

x objects loaded from History buffer. Hit F5 if you need to refresh the data

Hitting F5 (Refresh) will re-fetch the data from the database. You might need to do this if you have created or dropped some objects.

You can specify how many entries are in the cache - this is specified in Options > Table Information > Number of items in History Cache.

The History icon (above the Object Tree) gives you quick access to your recently displayed objects.

Other displays

These displays require further explanation, available from the links.

Other menu items