|
This section describes the objects on the SQL DM graphical user interface (GUI).
The following image shows the main window of the GUI. The table below the image describes the GUI objects. By default, Query Builder Diagram and Query Builder Grid are hidden when you start SQL DM.
|
GUI Object
|
Description
|
Related Information
|
|---|---|---|
|
Title Bar
|
Shows the following information:
(For example, in Figure 6-9 the open database is DEMODATA on machine DOCLAB2.)
|
|
|
File menu
|
Provides the following commands:
|
|
|
New SQL Query command
or
|
Creates a new SQL script in Query Pane. Clears Query Pane and positions the statement indicator at the top of the pane.
|
|
|
Open SQL Query command
or
|
Opens an SQL script and places its contents into Query Pane.
|
|
|
Save SQL Query command
or
|
Saves the SQL statement(s) in Query Pane as an ASCII file called an SQL script.
|
|
|
Save SQL Query As
|
Saves the SQL statement(s) in Query Pane as an ASCII file called an SQL script. If you have an SQL script already open, this command lets you save the statements with a different file name.
|
|
|
Open
Database |
Opens a database for use within SQL DM.
If a database is already open, SQL DM closes it and opens the one you specify.
|
|
|
Close Database
|
Closes the database currently open in SQL DM.
|
|
|
Print
|
Allows you to specify options for printing the contents of Query Pane.
|
|
|
Page Setup
|
Allows you to specify options for the layout of the printed page.
|
|
|
Exit
|
Terminates the execution of SQL DM. Prompts you to save the contents of Query Pane if the contents have changed.
|
|
|
Edit menu
|
Provides the following commands:
|
|
|
Undo
(Control+Z) |
Cancels typing actions performed in Query Pane. May be repeatedly performed for multiple undo actions.
|
|
|
Cut
(Control+X) |
Removes selected text from Query Pane and places it in the clipboard.
|
|
|
Copy
(Control+C) |
Copies selected text from Query Pane and places it in the clipboard.
|
|
|
Paste
(Control+V) |
Pastes clipboard text into Query Pane at cursor position.
|
|
|
Select All
(Control+A) |
Selects all of the contents of Query Pane.
|
|
|
Find
(Control+F) |
Finds a string in Query Pane.
|
|
|
Find Next
(F3) |
Searches for the last string specified for the Find actions.
|
|
|
Replace
(Control+H) |
Replaces one string with another in Query Pane.
|
|
|
View menu
|
Provides the following commands:
|
|
|
Query Pane command
or
|
Shows or hides Query Pane. By default, Query Pane is shown when you start SQL DM.
A database must be open to enable this command or icon.
|
|
|
Query
Builder Diagram command
or
|
Shows or hides Query Builder Diagram.
A database must be open to enable this command or icon.
|
|
|
Query
Builder Grid command
or
|
Shows or hides Query Builder Grid.
A database must be open to enable this command or icon.
|
|
|
Set Font command
or
|
Set the font family, style, size, and script. The font characteristics apply to all text in Query Pane. By default, SQL DM sets the font characteristics to Courier Regular 10, Western script.
|
|
|
Word Wrap
|
Wraps text within Query Pane. A checkmark beside the command indicates that word wrap is active.
|
|
|
Tools menu
|
Provides the following commands:
|
|
|
Query
|
Provides the following commands:
|
|
|
Run Current
SQL Statement in Grid command
or
|
Runs the current statement in Query Pane and places the results on the Grid Results tab if the statement is a SELECT statement.
If the current statement is not a SELECT statement, the results are placed on the Text Results tab.
This command is enabled if a database is open and one or more SQL statements are present in Query Pane.
|
|
|
Run Current
SQL Statement in Text command
or
|
Runs the current statement in Query Pane and appends the results on the Text Results tab.
This command is enabled if a database is open and one or more SQL statements are present in Query Pane.
|
|
|
Run All
SQL Statements command
or
|
Runs all statements in Query Pane starting with the statement at the top.
Output is placed on the Text Results tab, never on the Grid Results tab. The output is appended to any results that already exists on the Text Results tab.
This command is enabled if a database is open and one or more SQL statements are present in Query Pane.
|
|
|
Stop command
or
|
Interrupts the current statement(s) being run. The statement indicator positions to the statement in Query Pane that was being run when the interruption occurred. In addition, the Text Results tab lists the statement that was last run.
If you are running a statement for output to the Grid Results tab, any results are cleared on the tab.
An SQL statement(s) must be running to enable this command.
|
|
|
Continue
|
Continues running a script that was interrupted with the Stop command or Stop icon, or that stopped running because of an error.
|
|
|
Clear command
or
|
Clears all results on the Text Results tab. This icon is active only if the Text Results tab contains output.
A database must be open to enable this command or icon.
|
|
|
Query Builder
|
Provides the following commands:
|
|
|
Change
Query Type command
or
|
Changes the type of statement being built with Query Builder. The choices for type are SELECT, INSERT, UPDATE, and DELETE.
This command is enabled if a database is open and Query Builder Diagram or Query Builder Grid is enabled.
|
|
|
Add Table command
or
|
Adds a table to Query Builder Diagram (so you may select fields from the table).
This command is enabled if a database is open and Query Builder Diagram or Query Builder Grid is enabled.
|
|
|
Group By command
or
|
Specifies a GROUP BY clause in a SELECT statement when you build an SQL statement with Query Builder.
This command is enabled if a database is open and Query Builder Diagram or Query Builder Grid is enabled.
|
|
|
Active Grid
|
Sets the Grid Results grid to active or display-only. An active grid allows you to change values in the cells, which changes the data values in the database provided you have the proper database permissions. By default, the grid is active.
|
|
|
Properties
|
Sets the default behavior of the Grid Results grid, the SQL statement delimiter and the query time-out value.
|
|
|
Help menu
|
Provides the following commands:
|
|
|
How Do I?
|
Lists the tasks that you can perform with SQL DM.
|
|
|
Topics
|
Lists the documentation topics pertaining to SQL DM.
|
|
|
SQL
Reference |
Displays an alphabetical list of SQL statements and keywords that are links to the SQL Engine Reference.
|
|
|
Search Documentation
|
Searches for a string throughout the installed set of Pervasive.SQL documentation.
|
|
|
What's This?
|
Identifies objects in the SQL DM GUI.
|
|
|
Glossary
|
Defines terms used in the Pervasive.SQL documentation.
|
|
|
Online Manuals (Web)
|
Directs your browser to www.pervasive.com where you can reference the online manuals.
|
|
|
Knowledge Base (Web)
|
Directs your browser to www.pervasive.com where you can query the Pervasive.SQL Knowledge Base for additional information about Pervasive.SQL.
|
|
|
Developer Center (Web)
|
Directs your browser to www.pervasive.com where you can research information specifically for application developers using Pervasive.SQL.
|
|
|
About Pervasive.SQL Data Manager
|
Displays the name and version of SQL DM and the Pervasive.SQL copyright information.
|
|
| |
Moves the cursor to the first line in Query Pane and runs that statement. The statement indicator, the yellow arrow
in the left margin of Query Pane, indicates the statement in which the cursor is located.
|
|
| |
Moves the statement indicator to the previous line in Query Pane and runs that statement. The statement indicator, the yellow arrow
in the left margin of Query Pane, indicates the statement in which the cursor is located.
|
|
| |
Moves the statement indicator to the next line in Query Pane and runs that statement. The statement indicator, the yellow arrow
in the left margin of Query Pane, indicates the statement in which the cursor is located.
|
|
| |
Moves the statement indicator to the last line in Query Pane and runs that statement. The statement indicator, the yellow arrow
in the left margin of Query Pane, indicates the statement in which the cursor is located.
|
|
|
Query Pane
|
Accepts SQL statements typed into the pane or added with Query Builder. By default, Query Pane is shown (it may be shown or hidden).
|
|
|
Results Grid
|
Shows in a spreadsheet-like format the output of SELECT statements.
|
|
|
Grid Results tab
|
Displays the Results Grid tabbed dialog.
|
|
|
Text Results tab
|
Displays the Text Results tabbed dialog.
|
|
|
Progress indicator
|
Displays a progress bar (a series of moving blue squares) to indicate that SQL DM is currently processing an action. The progress bar stops displaying after an action completes.
|
|
|
Insert/Overtype indicator
|
Shows whether Query Pane and the grid on the Grid Results tab are in insert or overtype mode. Insert mode adds characters between other characters as you type. Existing characters are pushed to the right. Overtype mode replaces characters as you type.
The default mode is insert.
When this field shows OVR in boldface, SQL DM is in overtype mode. When OVR shows in a dimmed typeface, SQL DM is in insert mode.
|
|
|
Rows fetched indicator
|
Displays the number of rows returned for a SELECT statement.
|
|
The following image shows the pane for Query Builder Diagram. Two tables, "Person" and "Billing," are open in the pane. When shown, Query Builder Diagram always appears as the first pane below the main window toolbar.

The following image shows Query Builder Grid for SELECT statements. The table below the image describes the GUI objects.
|
GUI Object
|
Description
|
Related Information
|
|---|---|---|
|
Column
|
Shows the name of the database column being used in the SQL statement. Column names are fully qualified with the table name (table_name.column_name).
|
|
|
Alias
|
Shows the alternate name for a column. The alias name appears in an AS clause. The alias also appears as the column title in the results on the Grid Results tab and the Text Results tab.
|
|
|
Table
|
Shows the name of the table with which the column is associated.
|
|
|
Result
|
Specifies whether to include the column in Query Pane. An "X" in the option square includes the column in the SQL statement. Lack of an "X" excludes the column.
|
|
|
Order by
|
Specifies the priority by which the columns will be sorted in the result. The following choices are available:
The default is unsorted.
|
|
|
Group by
|
Specifies that the column is being used in a GROUP BY clause or as part of an aggregate query.
The Group By column appears only if you click Tools4Query Builder4 Group By or click
Group By provides the following aggregate functions:
|
|
|
Criteria
|
Specifies a search condition for the associated column. The default operator is equals (=). Text literals are automatically single quoted when you move from the Criteria cell.
The criteria acts as a filter to restrict the number of rows a SELECT statement returns.
The following operators are recognized as search criteria for a value:
|
|
|
Or
|
Specifies an additional search condition linked to the previous criteria by a logical OR.
Note: The grid does not contain a column for a logical AND. The task To build a SELECT statement with Query Builder explains how to construct a logical AND.
|
|
The following image shows Query Builder Grid for UPDATE statements. The table below the image describes the GUI objects.
|
GUI Object
|
Description
|
Related Information
|
|---|---|---|
|
Column
|
Shows the name of the database column being used in the SQL statement. Column names are fully qualified with the table name (table_name.column_name).
|
|
|
Table
|
Shows the name of the table with which the column is associated.
|
|
|
New Value
|
Specifies the value used to replace (update) a value in an existing column.
|
|
|
Criteria
|
Specifies a search condition for the associated column. The default operator is equals (=). Text literals are automatically single quoted when you move from the Criteria cell.
The criteria specifies the data that you want to change.
The following operators are recognized as search criteria for a value:
|
|
|
Or
|
Specifies an additional search condition linked to the previous criteria by a logical OR.
Note: The grid does not contain a column for a logical AND. The task To build a SELECT statement with Query Builder explains how to construct a logical AND.
|
|
The following image shows Query Builder Grid for INSERT statements. The table below the image describes the GUI objects.
The following image shows Query Builder Grid for DELETE statements. The table below the image describes the GUI objects.
|
GUI Object
|
Description
|
Related Information
|
|---|---|---|
|
Column
|
Shows the name of the database column being used in the SQL statement. Column names are fully qualified with the table name (table_name.column_name).
|
|
|
Table
|
Shows the name of the table with which the column is associated.
|
|
|
Criteria
|
Specifies a search condition for the associated column. The default operator is equals (=). Text literals are automatically single quoted when you move from the Criteria cell.
The criteria specifies the data that is used to identify the rows to delete. Note that a DELETE statement removes the entire row in which the criteria is found. If you want to change data and not remove it, use an UPDATE statement.
The following operators are recognized as search criteria for a value:
|
|
|
Or
|
Specifies an additional search condition linked to the previous criteria by a logical OR.
Note: The grid does not contain a column for a logical AND. The task To build a SELECT statement with Query Builder explains how to construct a logical AND.
|
|
|
Chapter contents
Prev topic: SQL Data Manager Concepts
|