|
DDF Builder provides a graphical user interface (GUI). The GUI includes various editors, views, and wizards with which you display and work with objects.
The object being edited is represented by a tab on top of the editor. The tab contains the name of the object. Data modified within an editor must be explicitly saved.
Note
Currently, only a single file can be edited at a time. Save any editing changes before attempting to edit or view a different file. Unsaved changes are lost if you change file contexts without first saving.
Views can be opened only one at a time. Actions performed within a view are applied immediately. No explicit save is required.
Wizards contain one or more dialogs and guide you through a task to obtain a specific result.
The following table lists the editors, views, and wizards that DDF Builder provides.
DDF Builder uses a file explorer-like motif-a tree of objects-referred to as the "Data Sources Explorer." Examples of objects include databases, Btrieve files, and SQL tables. The tree objects are referred to as "nodes."

Nodes can be expanded or collapsed to reveal or conceal subordinate nodes. The expand/collapse icon appears to the left of the node.
Most tasks in DDF Builder are initiated by selecting a command relevant to a node in Data Sources Explorer. The following tables direct you to tasks based on what action you want to take. The tables are categorized by areas of interest:
See also Scenarios .
|
If You Want To...
|
Then...
|
Notes
|
|---|---|---|
|
Create a new 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.
See Btrieve File Editor .
|
|
Export the file structure to a text 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.
See Export Btrieve Schema .
|
|
Create a new file based on the structure of another Btrieve file
|
Right-click a data path under the Data Paths node.
Click Import Btrieve Schema.
|
See Import Btrieve Schema .
|
|
Specify a directory where you want a Btrieve file located
|
Right-click Data Paths or a path listed under Data Paths.
Click Create Data File Directory.
|
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.
|
|
If You Want To...
|
Then...
|
Notes
|
|---|---|---|
|
Create a new database
|
Right-click
Click Create New Database.
|
See Add Database .
|
|
Remove a database from Data Sources Explorer
|
Right-click
Click Delete.
|
The database is not deleted from physical storage
|
|
If You Want To...
|
Then...
|
Notes
|
|---|---|---|
|
Access the JavaHelp
|
Press F1 within an editor, view, or wizard (or click Help 4 Help Contents).
|
See the Note in How Do You Access the Documentation? .
|
|
If You Want To...
|
Then...
|
Notes
|
|---|---|---|
|
Add a server to Data Sources Explorer
|
Right-click Engines node (or right-click a server name under the Engines node).
Click Add Server.
|
You identify a server by its network name or by its IP address. Optionally, you may specify the type of encoding.
See Add Server .
|
|
Remove a server from Data Sources Explorer
|
Right-click a server name under the Engines node.
Click Delete.
|
|
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
|
Double-click an SQL table name or right-click the table name then 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).
See SQL Editor .
|
|
Execute SQL statements in SQL Editor or in Outline View
|
See "Execution Tasks" in Pervasive.SQL User's Guide.
|
You can perform numerous tasks with SQL Editor. See "SQL Editor Tasks" in Pervasive.SQL User's Guide for a complete list.
|
See also Scenarios .
|
If You Want To...
|
Then...
|
Notes
|
|---|---|---|
|
Create a new table 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.
See SQL Table Editor .
|
|
Create a new table based on the schema of another SQL table
|
Right-click an SQL table name.
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.
See Copy SQL Definition .
|
|
Modify a table
|
Right-click an SQL table name.
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.
See SQL Table Editor .
|
|
Remove a table from Data Sources Explorer
|
Right-click an SQL table name.
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.
|
|
View statistics for the Btrieve file with which the SQL table is associated
|
Right-click an SQL table name or a Btrieve file name.
Click View File Statistics.
|
The table names appear under the SQL Tables node, or under Data Paths node.
See View File Statistics .
|
Btrieve File Editor creates the file and key specification for a new Btrieve file. DDFs are not automatically created for the new file. You must add them separately, if you want them (see SQL Tables ).
In Data Sources Explorer, right-click on a data path under the Data Paths node, then click Create Btrieve File.
A Btrieve file must be located on physical storage, which is why the editor is invoked from a data path.
Btrieve File Editor contains two tabs: one for specifying the characteristics of the file and one for specifying characteristics of the keys. The Apply button on each tab saves the specifications for that tab. Click File 4 Save to save the editing changes for both tabs.
At a minimum, you must supply a file name and a record length to create a Btrieve file. You specify these on the File Specification tab.
As stated in What Do You Need To Know Before Using DDF Builder? , this book assumes that you thoroughly understand the transactional access method and relational concepts. This section does not attempt to explain the controls on the Btrieve File Editor tabs. The following table provides links to related documentation if you need to further your understanding of Btrieve files.
Only one Btrieve file can be created at a time. On the Key Specification tab, click Apply after adding or changing each segment of a segmented key. This saves the changes to each segment before you create or edit the next segment.
See tracking numbers 52009 and 52284 in the "Known Issues" section of the readme file.
SQL Table Editor creates or changes the schema for SQL metadata. Note that SQL Table Editor is conceptually similar to Table Editor in Pervasive Control Center (PCC). See "Table Editor" chapter in Pervasive.SQL User's Guide.
Perform one of the following actions in Data Sources Explorer:
SQL Table Editor provides three different views of the metadata as explained in the following table.
|
Metadata View
|
Description
|
|---|---|
|
Hex and ASCII
|
Simultaneously shows the Hex and ASCII values of data records. You access the Hex and ASCII views on the Table tab of the editor. See callouts 1, 4, and 5 in Figure 1-3. Note that if you click on a cell in the Field Definition View (Figure 1-4), the Hex/ASCII display (callout 1) highlights the bytes for that field. The green highlighted values indicate where each field within the record begins.
You navigate among data records with the buttons to the right of the Hex/ASCII display. See callout 2 in Figure 1-3. "File Position" shows which record out of the total number of records is being displayed. For example, "1/1315" indicates that record one is displayed out of a total of 1,315 records.
|
|
Definitions
|
Shows the schema structure of the fields and the index. You access the fields structure on the Table tab of the editor and the index structure on the Index tab.
Note that you must check mark the "Incl" (Include) column for each field that you want to include in the SQL table definition.
![]()
Note that the Indexes tab is read-only. You cannot change information on that tab. Index additions or changes to an SQL table must be made with Pervasive Control Center. See "Table Editor" chapter in Pervasive.SQL User's Guide.
|
|
Formatted data
|
Shows the data in a human-readable layout. You navigate among the data records with the buttons on the tab. See Figure 1-6.
Note that the tab shows how many records are being displayed out of the total number of records. For example, "0-24/1315" indicates that the first 25 records are displayed out of a total of 1,315 records.
|




You cannot change the size, offset, or data type for a column if the column has keys defined for it in the Btrieve file. DDF Builder does not permit changing the layout structure of an existing Btrieve file.
The Indexes tab is read-only. You cannot change information on that tab. Index additions or changes to an SQL table must be made with Pervasive Control Center. See "Table Editor" chapter in Pervasive.SQL User's Guide. See tracking number 52287 in the "Known Issues" section of the readme file.
SQL Editor allows you to run Structured Query Language (SQL) statements against a Pervasive.SQL database, provided the database contains SQL tables. This editor is shared with Pervasive Control Center (PCC). See "SQL Editor" chapter in Pervasive.SQL User's Guide.
View File Statistics displays the file and key specifications for a Btrieve file. The information is read-only; you cannot change it in the view.
In Data Sources Explorer, right-click a Btrieve file name or an SQL table name, then click View File Statistics.
View File Statistics provides a convenient way to look at the structural characteristics of a Btrieve file. This is particularly useful if you are considering exporting the file schema but are unfamiliar with the file and key specifications.
See also Export Btrieve Schema .
Currently, only a single file can be viewed at a time. Also, if you are editing a file and want to view another file, save any editing changes before attempting to view the other file. Unsaved changes are lost if you change file contexts without first saving.
See tracking number 52009 in the "Known Issues" section of the readme file.
The Add Database Wizard creates a new database. This wizard is shared with Pervasive Control Center (PCC). See "Pervasive.SQL Databases" chapter in Advanced Operations Guide, particularly "New Database GUI Reference."
The Add Server Wizard permits DDF Builder to identify and interact with machines on which a Pervasive.SQL database engine is running. This wizard is shared with Pervasive Control Center (PCC). See "Database Engines" in Pervasive.SQL User's Guide.
The Copy SQL Definition Wizard creates a new SQL table based on the schema of an existing SQL table. The existing SQL table is called the "source" table. The wizard also creates a Btrieve file with which the new SQL table is associated.
In Data Sources Explorer, right-click an SQL file name, then click Copy SQL Definition.
If the source table contains data, the wizard provides a preview of the formatted data. Note, however, that the wizard does not include the data in the new table. You can, if you want, export the data from the source table and import it into the new table. See Export Data and Import Data .
The wizard requires that you specify the following:
The Export Btrieve Schema Wizard creates a file of XML content that specifies the schema of a source Btrieve file. You can use the XML file to create a new Btrieve file based on the structure of an existing Btrieve file. See Import Btrieve Schema .
Data from the source file is not exported. If you want to export data, see Export Data .
In Data Sources Explorer, right-click a Btrieve file name under the Data Paths node, then click Export Btrieve Schema.
By default, the wizard uses the source file name for the exported XML file name. The wizard adds a file extension of "xml" and locates the output file in the same directory as the source file. You can change the name and location of the XML output file if you choose.
The wizard also provides a preview of the XML content before you export it.
The Import Btrieve Schema Wizard creates a Btrieve file based on the structure of another Btrieve file. The structure must be a schema of the source file in XML format. See Import Btrieve Schema .
In Data Sources Explorer, right-click on a data path under the Data Paths node, then click Import Btrieve Schema.
A Btrieve file must be located on physical storage, which is why the wizard is invoked from a data path.
Since the wizard is invoked from the context of a known data path, you do not specify a path for "Target File," only a file name. The file name length must be less than or equal to 255 bytes. The file name cannot contain spaces unless the Embedded Spaces client configuration option is enabled. The option is enabled by default. See "Embedded Spaces" section in the "Configuration Reference" chapter in Advanced Operations Guide.
The Export Data Wizard exports data from a Btrieve file to a text file. A combination of carriage return and line feed delimits records.
In Data Sources Explorer, right-click a Btrieve file name under the Data Paths node, then click Export Data.
The wizard provides a preview of the formatted data before you export it. In addition, you can specify the following:
The Import Data Wizard reads delimited data from a text file and adds the data to a Btrieve file. The data must use a field delimiter of the comma, colon, or tab character. A combination of carriage return and line feed must delimit records.
In Data Sources Explorer, right-click an SQL table name then click Import Data.
Data resides within the pages of a Btrieve file. The reason that you invoke the Wizard from the name of an SQL table has to do with presenting the data in a readable format in the DDF Builder interface. For example, double-clicking an SQL table name in Data Sources Explorer displays the data through SQL Editor.
The wizard allows you to specify the following:
Create Data File Directory adds a data path to Data Sources Explorer. A data path represents a location on physical storage where Btrieve files reside. Each Pervasive.SQL database must have at least one data path identified for it.
Any DDFs that you create for Btrieve files are located in the original data path for the database. This is because all SQL tables for an entire database are defined in the same set of DDFs.
In Data Sources Explorer, right-click Data Paths or a database name under Data Paths, then click Create Data File Directory.
The existing directory can be empty or contain files.
Use the Delete command to remove a data path from Data Sources Explorer (right-click Data Paths or a database name, then click Delete). The directory is not deleted from physical storage.
|
Chapter contents
Prev topic: Getting Started With DDF Builder
|