|
This section explains the tasks that you perform with DDF Builder. The tasks are divided into the following categories:
General tasks apply to the overall use of the tool.
To start DDF Builder:
To access DDF Builder documentation:
To set preferences for SQL Editor, Data Grid, or Text Output:
To see added or deleted nodes in 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.
Click an area of interest in the following list to determine the commands pertaining to that area:
Task scenarios explain how to combine several activities to achieve a specific result.
Your goal is the following:
Complete the following steps, which assume a default installation of Pervasive.SQL.
Notice that MYCLASSFILE.MKD is listed as a Btrieve file and that it has an associated SQL table named Myclassfile. By default, DDF Builder adds a file extension of "mkd" to the Btrieve file.

Classexport.dat and select it as the name for the Source File.
You have achieved your goal for the scenario. Optionally, you may delete the new file now that you no longer need it.
Right-click Myclassfile.mkd then click Delete.
This removes the definition of the file from the DDFs but not the file from physical storage. If you want to delete the physical file, perform the deletion action at the operating system.
Your goal is the following:
Complete the following steps, which assume a default installation of Pervasive.SQL.
If you were performing this scenario outside of a learning exercise, you would already have a Btrieve file.
If you were performing this scenario outside of a learning exercise, you would already have a database.
By default, the Add Database wizard creates DDFs for the new database if none exist in the location you specify.
Notice that BTRTEST.MKD is listed as a Btrieve file. This is the file for which you will define SQL metadata.
If you were performing this scenario outside of a learning exercise, you would need to know the size and data types of the fields.
The SQL Table Editor starts. You should see something similar to the following:

Notice that "field_0" and "field_2" have defined data types. This indicates that they are defined as keys in the Btrieve file. Click the CHAR(7) cell for "field_0." The editor informs you that you cannot change the data type because a key is defined for that column.
The field name for the inserted row is "<field name>."

Note that you must check mark the "Incl" (Include) column for each field that you want to include in the SQL definition.
The SQL definition should look like the following:

Note that, if you wanted, you can change the name of the table on the Table tab before you click Apply. Once you save your changes, you cannot change the table name in SQL Table Editor.
Notice that the SQL metadata allows you to view the data in a human readable format.

SQL Editor starts and executes a "SELECT *" statement on the table.

You have achieved your goal for the scenario. Optionally, you may delete the new database now that you no longer need it.
Right-click Scenariotest then click Delete.
This removes the definition of the database from DDF Builder but not from physical storage. If you want to delete the scenario_test directory, do so at the operating system.
|
Chapter contents
Prev topic: The DDF Builder Graphical User Interface
|