Dropping a table  Printing the table definition

Chapter 16: Managing the Database

Viewing pending SQL changes

As you create or alter a table definition, you can view the pending SQL syntax changes that will be made when you save the table definition.

Figure 16-4: SQL syntax for pending changes to a table

StepsTo view pending SQL syntax changes:

  1. Right-click the table definition in the Columns view and select Pending Syntax from the pop-up menu.

    PocketBuilder displays in SQL syntax the pending changes to the table definition.

    The SQL statements execute only when you save the table definition or reset the view and then tell PocketBuilder to save changes.

Copying, saving, and printing pending SQL changes

When you are viewing pending SQL changes, you can:

NoteTo copy, save, or print only part of the SQL syntax Select the part of the SQL syntax you want before you copy, save, or print.

StepsTo copy the SQL syntax to the clipboard:

  1. In the Pending Syntax view, click the Copy button or select Copy from the pop-up menu.

StepsTo save SQL syntax for execution at a later time:

  1. In the Pending Syntax view, select File>Save As.

    The Save Syntax to File dialog box displays.

  2. Navigate to the folder where you want to save SQL, name the file, and then click the Save button.

At a later time, you can import the SQL file into the Database painter and execute it.

StepsTo print pending table changes:

  1. While viewing the pending SQL syntax, click the Print button or select Print from the File menu.

StepsTo display columns in the Columns view:

  1. Select Object>Pending Syntax from the menu bar.





Copyright © 2004. Sybase Inc. All rights reserved. Printing the table definition

View this book as PDF