Reference Guide
Reference Guide
Reference Guide
|
Used to generate database queries by graphical or visual means, and to generate reusable database form dialogs (obtained from queries) which easily interface with the database. Opens when Settings > is chosen.
Opens the tab page, which is used to generate the SELECT clause of an SQL database query.
Opens the tab page, which generates a WHERE clause in an SQL database query.
Opens the tab page, which generates a GROUP BY clause in an SQL database query.
Opens the tab page, which is used to sort query results.
Generates an SQL query statement. A query statement is generated either by using the tab pages and their controls, or by typing directly into the text box.
Generates a form dialog corresponding to the query displayed in the SQL Select Statement text box. See .
Clears all selected tables and returns all settings to default.
Opens the Open Form dialog box, a standard file selection dialog box, whose default file search filter is .rsc. It is used to open an existing form. After selecting a directory and a file, clicking OK opens the selected form dialog.
Opens the Edit Form dialog box. Set filename to a table name in the database to which you are currently connected. After selecting the file and clicking OK, the selected form dialog, the and the Builder open. Use the Builder dialog box and the Builder Tools palette to edit the appearance of a form dialog (see ).
Opens the Save Form dialog box, a standard file selection dialog box, whose default file search filter is .rsc. After selecting a directory and typing a filename for the form to be saved, clicking OK saves the open form dialog.
Closes all the Query Builder dialog boxes and form dialogs and exits the Query Builder application.
Alternatively, you can dismiss the Visual SQL Query Builder dialog box and leave other open VSQL dialog boxes intact. |
Opens the , which provides a list of database tables for selection for generating SQL queries.
Opens the Open SQL Query From File dialog box, a standard file selection dialog box which is preset to select .sql files. This opens a previously saved SQL query which is loaded into the SQL Select Statement text box.
Saves the contents of the SQL Select Statement text box in a file.
Opens a dialog box which enables you to assign a name to the SQL Select Statement to be saved.
Prompts for a filename where the results of the current SQL Select Statement (dataset) will be saved. Each row of the dataset is saved to a single record in the results file.
The columns are separated by the file extension of the results file:
*.txt files separate columns with the pipe “|” character.
*.dat files separate columns with the tab “\t” character.
*.out files separate columns with a comma.
*.dif files separate columns in DIFF format by enclosing each column in double quotes and separating them with columns.
*.ins and *.sql files will result in the columns being formatted as a series of SQL Insert statements. This file extension is only permitted for Select statements that include one table only. This format is useful for exporting data in a database-independent SQL format.
Once you choose a format and save your results to a text file, that file can be imported into any program (i.e., word processor, spreadsheet, external database, etc.) that accepts delimited text files.
Another option for saving dataset results to a text file is using the key-in VSQL DATASET WRITE. Saving your query results in this manner allows you to read the dataset from the text file back into MicroStation. When you key in VSQL DATASET READ, your saved results are opened in a dialog box, just as they were displayed after executing the original query. If your dataset contains multiple query results, then each set of results within the dataset is displayed in its own dialog box.
Key-in: VSQL DATASET READ <FILENAME
Key-in: VSQL DATASET WRITE <FILENAME>
Key-in: VSQL DATASET READ <FILENAME>
Opens the Standard Form Items dialog box, which is used to determine the control items which appear on newly generated dialog forms.
Turn check boxes on and off to select and deselect items, and click OK to save.
Displays the results of your query in a .
Displays the results of your query in the .