Using the Database painter
To open the Database painter, click the Database button in the
PowerBar.
About the painter
Like the other PowerBuilder painters, the Database painter
contains a menu bar, customizable PainterBars, and several views. All
database-related tasks that you can do in PowerBuilder can be done in
the Database painter.
Views in the Database
painter
The following table lists the views available in the Database
painter.
View |
Description |
---|---|
Activity Log |
Displays the SQL syntax generated by the actions |
Columns |
Used to create and/or modify a table’s |
Extended Attributes |
Lists the display formats, edit styles, and |
Interactive SQL |
Used to build, execute, or explain |
Object Details |
Displays an object’s properties. For some objects, |
Object Layout |
Displays a graphical representation of tables and |
Objects |
Lists database interfaces and profiles. For an |
Results |
Displays data in a grid, table, or freeform |
Dragging and dropping
You can select certain database objects from the Objects view and
drag them to the Object Details, Object Layout, Columns, and/or ISQL
views. Position the pointer on the database object’s icon and drag it to
the appropriate view.
Object |
Can be dragged to |
---|---|
Driver, group, metadata type, procedure or |
Object Details view |
Table or view |
Object Layout view |
Table or column |
Columns view |
Procedure or view |
ISQL view |
Database painter tasks
The following table describes how to do some basic tasks in the
Database painter. Most of these tasks begin in the Objects view. Many
can be accomplished by dragging and dropping objects into different
views. If you prefer, you can use buttons or menu selections from the
menu bar or from pop-up menus.
To |
Do this |
---|---|
Modify a database profile |
Highlight a database profile and select Properties You can use the Import and Export Profiles |
Connect to a database |
Highlight a database profile and then select |
Create new profiles, tables, views, columns, keys, |
Highlight the database object and select New from |
Modify database objects |
Drag the object to the Object Details |
Graphically display tables |
Drag the table icon from the list in the Objects |
Manipulate data |
Highlight the table and select Grid, Tabular, or |
Build, execute or explain SQL |
Use the ISQL view to build SQL statements. Use the |
Define or modify extended attributes |
Select from the Object>Insert menu the type of |
Specify extended attributes for a |
Drag the column to the Object Details view and |
Access database utilities |
Double-click a utility in the Objects view to |
Log your work |
Select Design>Start Log from the menu bar. To |