PreviousDDF Builder User's Guide (v10) Next

DDF Builder Tasks

Chapter contents

This section explains the tasks that you perform with DDF Builder. The tasks are divided into the following categories:

Category
Description
Orient you to the overall use of DDF Builder
Allow you to access editors, views, and wizards

General Tasks

General tasks apply to the overall use of the tool.

To start DDF Builder

See Starting DDF Builder

Accessing User Documentation

To access DDF Builder online documentation

  1. Start DDF Builder and press F1 or click Help 4 Help Contents (see Note).
  2. In the JavaHelp viewer, click the desired topic for the book DDF Builder User's Guide.

  3. Note
    DDF Builder and the Pervasive PSQL Control Center (PCC) utility share common components, such as SQL Editor. Because of this, help invoked from certain areas within DDF Builder accesses information in other Pervasive PSQL books, such as in the Pervasive PSQL User's Guide.

DDF Builder Log File

To access DDF Builder Log file

  1. Start DDF Builder and click Help 4 DDF Builder Log.
  2. The log file displays in your system text editor.

To clear DDF Builder Log file

  1. Start DDF Builder and click Help 4 Clear DDF Builder Log.
  2. A dialog box displays for you to confirm the action.

  3. Click Yes to confirm and the log file is deleted.
  4. The next time you start DDF Builder, a new log file is automatically created.

To see added or deleted nodes in Data Sources Explorer

  1. Right-click on the node for which you want to see the addition or deletion.
  2. Click Refresh.
  3. The context of the Refresh command applies to the node from which you invoke it. If you want to refresh all nodes in Data Sources Explorer, execute the command from the Engines node (the top of the tree).

Tasks Initiated from Data Sources Explorer

Most tasks in DDF Builder are initiated by selecting a command relevant to a node in Data Sources Explorer. The commands invoke an editor, a view, or a wizard. The following tables direct you to tasks based on what action you want to take. The tables are categorized by areas of interest:

Btrieve Files

If You Want To...
Then...
Notes
Create a new Btrieve file with an editor.
Right-click a data path under the Data Paths node.
Click Create Btrieve File .
DDF Builder does not automatically create DDFs for the new file.
Export the Btrieve file structure to an XML file.
Right-click a Btrieve file name under the Data Paths node.
Click Export Btrieve Schema .
The data in the Btrieve file is not exported.
Create a new file based on the structure of another Btrieve file, as specified in a XML file.
Right-click a data path under the Data Paths node.
Click Import Btrieve Schema .
The data in the Btrieve file is not imported.
Specify a directory where you want a Btrieve file located.
Right-click the Data Paths folder .
Click Add Data Path .
Any DDFs that you create for the Btrieve file are located in the original data path for the database. This is because all SQL tables are defined in the same set of DDFs.
Remove a data path directory from Data Sources Explorer.
Right-click a data path under the Data Paths node.
Click Delete .
Neither the directory nor any files in it are deleted from physical storage.
View the Btrieve file statistics with which the SQL table is associated.
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Edit Table Definition .
Click Statistics tab.
The table names appear under the SQL Tables node, or under Data Paths node.
Change the Btrieve (data) file associated with the selected SQL table.
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Change Associated Data File .
Only one data file may be associated with a particular table.

Data

If You Want To...
Then...
Notes
Check the consistency for all tables at once
Right-click Databases node.
Click Check Database.
Check the consistency for one or more tables individually
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Check Tables.
The names appear under the SQL Tables node, or under a Btrieve file name (Data Paths node) if the Btrieve file has DDFs.
You can select multiple tables by holding down the Shift or Control key then clicking the desired table names.
Specify in Data Sources Explorer a directory where you want data files to reside or where they already reside
Right-click the Data Paths folder .
Click Add Data Path .
Remove from Data Sources Explorer a directory where data files reside
Right-click a data path listed under the Data Paths node.
Click Delete .
Neither the directory nor any files in it are deleted from physical storage.

Database

If You Want To...
Then...
Notes
Create a new database
Right-click Databases node.
Click Add Database.
Remove a database from Data Sources Explorer
Right-click Databases node.
Click Delete .
The database is not deleted from physical storage.

Data Sources Explorer

If You Want To...
Then...
Notes
Update the tree to show additions to or deletions from a node(s)
Right-click on any node except for the name of an SQL table.
Either click Refresh or press F5.
The context of the Refresh command applies to the node from which you invoke it. If you want to refresh all nodes in Data Sources Explorer, execute the command from the Engines node at the top of the tree.

Online Help

If You Want To...
Then...
Notes
Access the JavaHelp
Press F1 within an editor, view, or wizard (or click Help 4 Help Contents).

SQL Queries

If You Want To...
Then...
Notes
Execute a SELECT statement for all records in an SQL table (SELECT * FROM)
or
Access an editor in which you can type SQL statements to execute against an SQL table
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click SQL Editor .
By default, SQL Editor executes a SELECT * FROM statement when it opens.
SQL table names display as subordinate nodes under SQL Tables and under the Btrieve file name (provided the Btrieve file has DDFs).
Execute SQL statements in SQL Editor or in Outline View
See "Execution Tasks" in Pervasive PSQL User's Guide.
You can perform numerous tasks with SQL Editor. See "SQL Editor Tasks" in Pervasive PSQL User's Guide for a complete list.

SQL Tables

If You Want To...
Then...
Notes
Create a new table definition with an editor
Right-click a Btrieve file name under the Data Paths node.
Click Create Table Definition .
You can create one or more SQL tables for a Btrieve file. Each SQL table appears as a subordinate node under the Btrieve file name.
Create a new table based on the schema of another SQL table
Right-click an SQL table name under either the Btrieve file or SQL Tables node.
Click Copy SQL Definition .
The table names appear under the SQL Tables node, or under a Btrieve file name (Data Paths node) if the Btrieve file has DDFs.
Modify a table definition
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Edit Table Definition .
The names appear under the SQL Tables node, or under a Btrieve file name (Data Paths node) if the Btrieve file has DDFs.
Remove a table from Data Sources Explorer
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Delete .
The table is not deleted from physical storage.
The table names appear under the SQL Tables node, or under a Btrieve file name (Data Paths node) if the Btrieve file has DDFs.
Change the Btrieve (data) file associated with the SQL table.
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Change Associated Data File .
Only one data file may be associated with a particular table.
View the Btrieve file statistics with which the SQL table is associated
Right-click an SQL table name under either the Data Paths or SQL Tables node.
Click Edit Table Definition .
Click Statistics tab.
The table names appear under the SQL Tables node, or under Data Paths node.


Chapter contents
Book contents

Prev topic: GUI Reference
Next topic: DDF Builder Tutorials