Changing a Table View

See Also

When you’re working with only a few tables in a database diagram, it’s usually helpful to view as much column information as possible. Such a view not only gives you more information, but it also enables you to edit the column definitions.

When you’re working with a large number of tables, however, it’s usually preferable to view only the column names, or only the table name, so that you can see more of the tables in your diagram at once.

In a database diagram, you can expand the tables you want to edit as needed and then collapse them again to save space on the diagram.

Each table in a database diagram can be displayed in one of five views.

To change a table view

  1. In your database diagram, select the tables you want to see in another view. To change the view of all the tables in your diagram, choose Select All from the Edit menu.

  2. Right-click the table and select the desired view from the shortcut menu.

    -or-

    Click the corresponding button on the toolbar to change the view of the selected tables:

    Click this button Button name To
    Column Properties Add, rename, or delete columns,
    create relationships to other tables,
    edit column properties
    Column Names Add, rename, or delete columns,
    create relationships to other tables
    Keys Add, rename, or delete key columns,
    create relationships to other tables
    Name Only Minimize tables
    Custom Add, rename, or delete the property columns you've chosen to display in the property grid,
    create relationships to other tables,
    edit column properties for the columns you've chosen to display

When you finish editing a table, you can change it to a different view or resize it to create more space on the diagram.

To modify the Custom view

  1. In your database diagram, right-click the table you want to see in Custom view.

  2. From the shortcut menu, choose Modify Custom View. The Column Selection dialog box appears.

  3. Use the arrows to move the desired columns from the Available columns box to the Selected columns box.

    Note   To add a column, highlight the column in the Available columns box and click the > button. The column will then be listed in the Selected columns box. To display all columns, click the >> button. To remove a column from the Selected columns box, highlight the column and click the < button.

  4. The columns will appear in the table in the order they are displayed in the Selected columns box. Use the Sort arrows to rearrange the columns in the Selected columns box to the desired order.

  5. To make this setting the default Custom view, select the Save as default box.

    Note   If the Save as default box is not selected, the columns listed in the Selected columns box will be displayed for all the database tables displayed in Custom view on the current diagram. However, this setting will not be saved and is not applied to other diagrams when you choose the Custom view command.

  6. Click OK.

The selected table is redrawn to display the columns chosen in the dialog box.