Pervasive logo

Prev User's Guide Next

Table Designer Tasks


This section explains the tasks that you perform with Table Designer. The tasks are divided into the following categories:
Category
Description
Orient you to the overall use of Table Designer
Apply to using the Columns tab
Apply to using the Indexes tab
Apply to using the Statistic tab
Apply to using the Btrieve tab

General Tasks

General tasks apply to the overall use of the tool. The following table helps you locate a task by category.
Category
Task
Getting Started







Data




Copy/Paste

Columns Tasks

Column tasks apply to the Columns tab.


Note
Inserting, deleting, or moving a column on the Columns tab changes the database. The database is rebuilt when you save the Table Designer information.

Indexes Tasks

Index tasks apply to the Indexes tab.

Statistics Tasks

Statistics tasks apply to the statistics tab.

Btrieve Tasks

Btrieve tasks apply to the Btrieve tab.

General Tasks

To start Table Designer from PCC

  1. Start PCC if it is not already running. (Click Start4Programs4Pervasive.SQL V84Control Center.)
  2. In the PCC data pane, right-click on the icon for the table you want to modify.
  3. Click Tasks4Edit Table Design.


Note
When started this way (Tasks4Edit Table Design), Table Designer opens a separate instance for each table. This means that you can open multiple instances of Table Designer for the same table. Changes saved in one instance are reflected in another instance only if you perform a reset. For example, suppose you open Table Designer twice (called instance A and B) for table MyTable. If you save changes in instance A, you must perform a reset in instance B to see those changes. Reset causes all of the displayed properties to revert to their last-saved values.

To identify open database and table

  1. Observe the Table Designer title bar.

    The title bar shows the name of the open database and the name of the open table. If Table Designer was started from PCC, the title bar also shows the machine on which the database resides.

    For example, the following image shows that Billing is the open table, DEMODATA is the open database, and DOCLAB2 is the machine on which DEMODATA resides.

To work with columns

Ensure that Table Designer is in linked mode. See To change Table Designer mode .

  1. Click View4Columns or click the Columns tab.

To work with indexes

When Table Designer is in unlinked mode, index changes affect only the data definition files. See To change Table Designer mode .

  1. Click View4Indexes or click the Indexes tab.

To display table statistics

  1. Click View4Table Statistics or click the Statistics tab.

To work with Btrieve data

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode .

  1. Click View4Btrieve Data or click the Btrieve tab.

To change Table Designer mode

  1. Click Tools4Options.

    The Options dialog appears.

  2. Deselect the current option. For example, if Table Designer is in linked mode, deselect (uncheck) the option Table linked mode.
  3. Click OK (or click Apply then OK).

    The lower right corner of the Table Designer window indicates the current mode: UNLINKED MODE or LINKED MODE. Note that only in unlinked mode do all four tabbed dialogs appear.

To display help

  1. Click Help, then the type of help you want:
    • How Do I? - Lists the tasks that you can perform with Table Designer.
    • Topics - Lists the documentation topics for Table Designer.
    • Search Documentation - Searches for a string throughout the installed set of Pervasive.SQL documentation.
    • What's This? - Identifies objects in the Table Designer GUI.
    • Glossary - Defines terms used in the Pervasive.SQL documentation and products.
    • 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 - Displays the name and version of Table Designer and the Pervasive.SQL copyright information.

To view table data

  1. Click Tools4View Data or click .

    The command (or the icon) starts Pervasive.SQL SQL Data Manager. For more about SQL Data Manager, see SQL Data Manager .

To identify insertions or deletions that have not been saved

  1. Observe the cells on the grid indicator column.

    The indicator column is the gray, leftmost grid column:

    A blue asterisk (*) in a cell shows information that is marked for addition. A red "x" in a cell shows information that is marked for deletion.

To save changes

  1. Click File4Save or click .
  2. If Table Designer is in unlinked mode, click OK on the warning message to save changes.

To discard all changes (Reset)

  1. Click View4Reset or click .

    Reset restores the table attributes and table data to the last-saved state. All changes that have not been saved are discarded. (Table Designer has three Reset commands. They all perform the same function.)

To determine the length of a record

  1. View the record length indicator field near the lower right corner of the Table Designer window.

    The value in the field shows the record length in bytes. You may also click the Statistics tab and view the value for the Record Length parameter.

To copy data from a grid cell

  1. Click in the grid cell that contains the data you want to copy.
  2. Click Edit4Copy or click . (You may also press Control+c.)

To paste data into a grid cell

  1. Click in the grid cell where you want to paste the data.
  2. Click Edit4Paste or click . (You may also press Control+v).


Note
You cannot paste data that is not applicable to a particular data type. For example, you cannot paste a value into the Size cell for an INTEGER.

You may paste data that you cut or copied from another application, such as a text editor or a spreadsheet program.

Columns Tasks

To insert a column at end of column definitions

Inserting, deleting, or moving a column on the Columns tab changes the database. The database is rebuilt when you save the Table Designer information.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click View4Columns or click the Columns tab.
  2. Click on the empty grid row below the last named column. You may click on any empty cell in the row except for the gray, leftmost cell. (The gray, leftmost cell is used for positioning on existing columns.)

    A new column is inserted. A blue asterisk (*) appears in the leftmost cell. The default name of the column is "col_n," where "n" is a number that automatically increments by one. (The first column you insert is col_1, the second col_2 and so forth.) The column is not added to the table until you save the database.

    The following image shows a column inserted after the column named Head_of_Dept:

  3. Click File4Save or click .

    The save action adds the column.

To insert a column between columns

Inserting, deleting, or moving a column on the Columns tab changes the database. The database is rebuilt when you save the Table Designer information.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click View4Columns or click the Columns tab.
  2. Click on the leftmost cell of the column above which you want to insert a column. (A right-pointing triangle appears in the cell, indicating the selected column )
  3. Click Edit4Insert Columns or click

    A new column is inserted. A blue asterisk (*) appears in the leftmost cell. The default name of the column is "col_n," where "n" is a number that automatically increments by one. (The first column you insert is col_1, the second col_2 and so forth.) The column is not added to the table until you save the database.

    The following image shows a column inserted before the column named Head_of_Dept:

  4. Click File4Save or click .

    The save action adds the column.

To change column order

Inserting, deleting, or moving a column on the Columns tab changes the database. The database is rebuilt when you save the Table Designer information.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Specify where to move the column.
    1. Click Edit4Move Up (or click )to move the column up one grid row.
    2. Click Edit4Move Down (or click ) to move the column down one grid row.

To delete a column

Data is removed from your database if you delete a column. The database is rebuilt when you save the Table Designer information.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click Edit4Delete Column or click .

    A red "x" appears in the gray, leftmost grid cell . The "x" indicates that the column is marked for deletion. The column is not deleted until you save the table information.

  3. Click File4Save or click .
  4. Click Yes to save the Table Designer information to catalog files.

    The save action deletes the column.

To set a column name

See also Naming Conventions in Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Column Name grid cell.
  3. Delete the existing column name (use the Backspace key or select the name and press Delete).
  4. Type the name you want.

    The name can be alpha-numeric, 20 characters or less. The name can have spaces, but if spaces are included you must always enclose the name in quotes whenever using the name in SQL statements. For this reason, Pervasive recommends avoiding spaces. Also avoid using reserved words for column names. See Reserved Words in SQL Engine Reference.

To set a column data type

The data in your database is converted if you change a column data type. For a listing of data types, see Pervasive.SQL Supported Data Types in SQL Engine Reference.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Type grid cell.
  3. Open the list for data types (click ).
  4. Scroll to the data type you want.
  5. Click the data type you want. (You may also type the first letter of the desired data type to select a data type.)

To set a column size

Data in your database is truncated if you change the column to a smaller size for the following data types:

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Size grid cell.

    You can set a size only for applicable data types, such as CHAR. If size is not applicable, you will be unable to position the cursor in the Size grid cell.

  3. Delete the existing size (use the Backspace key or select the name and press Delete).
  4. Type the size you want.

To set column precision

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Precision grid cell.

    You can set precision only for applicable data types, such as DECIMAL. If precision is not applicable, you will be unable to position the cursor in the Precision grid cell.

  3. Delete the existing value (use the Backspace key or select the name and press Delete).
  4. Type the precision value you want.

    Precision specifies the number of significant digits for floating point values.

To set a column scale

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Scale grid cell.

    You can set a scale value only for applicable data types, such as NUMERIC. If collating sequence is not applicable, you will be unable to position the cursor in the Scale grid cell.

  3. Delete the existing value (use the Backspace key or select the name and press Delete).
  4. Type the scale value you want.

    Scale specifies the number of significant digits that are to the right of the decimal point for floating point values.

To set a column to allow or disallow nulls

For additional information about nulls, see Rebuild Utility Concepts in Advanced Operations Guide, INSERT in SQL Engine Reference, and Null Value in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click the option box in the Null grid cell.

    You can allow nulls only for applicable data types. A shaded square indicates that null values do not apply to the data type.

    A checkmark in the box indicates that nulls are allowed for the column. Lack of a checkmark indicates that the column cannot be blank (that is, for every record, the column must contain a value other than null).
    Option Box State
    Meaning
    Nulls allowed
    Nulls disallowed
    Nulls do not apply

    Also see Null Values .

To set case sensitivity for a column

Case sensitivity does not apply if the key uses an alternate collating sequence (ACS). You cannot specify case sensitivity and use an ACS.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click the option box in the Case grid cell.

    You can set a collating sequence only for applicable data types. A shaded square indicates that case sensitivity does not apply to the data type.

    A checkmark in the box indicates that column values are case insensitive. Lack of a checkmark indicates that column values are case sensitive.
    Option Box State
    Meaning
    Case insensitive
    Case sensitive
    Case does not apply

    By default, Pervasive.SQL is case sensitive when sorting string keys. Uppercase letters are sorted before lowercase letters. If you specify case insensitive, values are sorted without distinguishing case.

To set a column collating sequence

For additional information about collating sequences, see Manipulating Btrieve Data Files with Maintenance in Advanced Operations Guide and Alternate Collating Sequences in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

If you use an alternate collating sequence (ACS), you cannot specify case sensitivity. Case sensitivity does not apply if the key uses an ACS.

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Collate grid cell.

    You can set an alternating collating sequence (ACS) only for applicable data types. If collating sequence is not applicable, you will be unable to position the cursor in the Collate grid cell.

  3. Delete the existing value, if present (use the Backspace key or select the name and press Delete).
  4. Type the path and ACS file name you want.

    Pervasive.SQL supplies an ACS file, upper.alt, in the Samples folder. To use this file, you would type c:\pvsw\samples\upper.alt.

    Upper.alt treats upper and lower case letters the same for sorting. For example, if a database has values abc, ABC, DEF, and Def, inserted in that order, the sorting with upper.alt returns as abc, ABC, DEF, and Def. (The values abc and ABC, and the values DEF and Def are considered duplicates and are returned in the order in which they were inserted.) Normal ASCII sorting sequences upper case letters before lower case, such that the sorting would return as ABC, DEF, Def, abc.

To set a column default

This task requires that Table Designer be in linked mode. See To change Table Designer mode .

  1. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  2. Click in the Default grid cell.

    You can set a default only for applicable data types. If a default is not applicable, you will be unable to position the cursor in the the Default grid cell.

  3. Delete the existing value, if present (use the Backspace key or select the name and press Delete).
  4. Type the default value you want.

    The default value is used if you perform an SQL INSERT for a row but do not provide a value for the column.

Index Tasks

To insert an index

When Table Designer is in unlinked mode, index changes affect only the data definition files.


Tip
You may create "dummy" indexes in your data definition files to match indexes in your Btrieve file. An example helps clarify.

Suppose your Btrieve file has indexes 0, 1, 2, and 5 and in your Index.ddf file you have indexes 0, 1, and 2. You could create "dummy" indexes in the definition file for 3 and 4, and an actual index for 5. Thus, your indexes would match as follows:

Btrieve File Indexes            Data Definition File Indexes
              0                                                 0
              1                                                 1
              2                                                 2
                                                                 3 "dummy"
                                                                 4 "dummy"
              5                                                 5

The "dummy" indexes can be on any column that can be indexed because they are not used by your Btrieve file.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click on the empty grid row below the last named index. (You may also click on the gray, leftmost cell of an existing index if you want to insert a new index above an existing one.)

    A new index is inserted. A blue asterisk (*) appears in the leftmost gray cell. The default name of the column is "index_n," where "n" is a number that automatically increments by one. (The first index you insert is index_1, the second index_2 and so forth.)

    The following image shows an index inserted:

  3. Click File4Save or click .

    The save action adds the index. See also Creating Indexes in Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

To delete an index

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click on the grid indicator cell for the index you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the index is selected.

  2. Click Edit4Delete Index or click .

    A red "x" appears in the gray, leftmost grid cell . The "x" indicates that the index is marked for deletion. The index is not deleted until you save the table information.

  3. Click File4Save or click .

    The save action deletes the index.

To insert an index segment

For detailed information about segments, see Segmentation in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click View4Indexes or click the Indexes tab.
  2. Click on the leftmost cell of an existing index or an existing index segment.
  3. Click Edit4Insert Segment or click .

    A new index segment is inserted below the existing index or segment. A blue asterisk (*) appears in the leftmost cell. The new segment is not added until you save the database.

    The following image shows an index segment inserted:

  4. Click File4Save or click .

    The save action adds the index segment.

To delete an index segment

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click on the grid indicator cell for the index segment you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the index segment is selected.

  3. Click Edit4Delete Segment or click .

    A red "x" appears in the gray, leftmost grid cell . The "x" indicates that the index segment is marked for deletion. The segment is not deleted until you save the table information.

  4. Click File4Save or click .

    The save action deletes the index segment

To specify index sort column

For detailed information about sort order, see Sort Order in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click in the Column grid cell.
  3. Open the list for columns (click ).
  4. Scroll to the column name you want and click the name.

    Some data types, such as BIT, cannot be used for an index. Columns with such data types are not valid choices.

To allow duplicates in index

For detailed information about duplicates, see Duplicatability in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click on the grid indicator cell for the index you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the index is selected.

  3. Click the option box in the Duplicate grid cell.

    A checkmark in the box indicates that the index allows duplicates (the values are not unique).

    Lack of a checkmark indicates that the index values are unique (duplicate values are not allowed).
    Option Box State
    Meaning
    Duplicates allowed
    Duplicates not allowed
    Duplicates do not apply

    The default for all SQL data types is that the index column allows duplicates.

To specify index as modifiable

For detailed information about modifiability, see Modifiability in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click on the grid indicator cell for the index you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the index is selected.

  3. Click the option box in the Modifiable grid cell.

    A checkmark in the box indicates that the index value can be modified. Lack of a checkmark indicates that the index value cannot be modified.
    Option Box State
    Meaning
    Values can be modified
    Values cannot be modified
    Modifiable does not apply

    The default for all SQL data types is that the index column is modifiable.

To specify index sort sequence

For detailed information about sort order, see Sort Order in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

When Table Designer is in unlinked mode, index changes affect only the data definition files.

  1. Click Edit4Indexes or click the Indexes tab.
  2. Click in the Sort grid cell.

    If a sort sequence is not applicable, you will be unable to position the cursor in the Sort grid cell.

  3. Open the list for sort (click ).
  4. Click the type of sort you want: ascending (asc) or descending (des). The default value is ascending.

Statistics Tasks

To change the location of a table's data file

Changing the Table Location parameter does not move the table's data file. The change only instructs the database engine where to find the data file. If you wish to have your existing data still available, you must move the data file to the newly specified location.

A database also must be unbound for you to change the location of a data file or move the data file. When you create a database in PCC, you are offered the option of creating a bound database.

Pervasive.SQL automatically binds a data file to a named database if the file meets any of the following criteria:

See also the tool Pervasive.SQL Database GUI Reference in Advanced Operations Guide. This tool lets you bind and unbind a database.

  1. Click View4Table Statistics or click the Statistics tab.
  2. Click in the Table Location grid cell and delete the existing value, if present. (Use the Backspace key or select the name and press Delete.)
  3. Type the location you want.

    If you are specifying a location on the same server where the database engine is running, specify the location in this manner:

    • For NetWare, enter a path in the form vol:\path.
    • For Windows NT, enter a path in the form drive:\path, where drive is the local drive letter.
    • For Linux, enter the standard Linux path format from root.

      If you are specifying a location to data files on another server, specify the full UNC path:

    • For NetWare, enter the path in the form \\server\vol:\path
    • For Windows, enter the path in the form \\server\sharename\path
    • For Linux, enter the path in one of two ways:
      \\server\share\path  or 
      \\server\$PVSW$\path 
      

To display table information

  1. Click View4Table Statistics or click the Statistics tab.

Btrieve Tasks

To insert a Btrieve column at end of column definitions

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the empty grid row below the last named column. You may click on any empty cell in the row except for the leftmost cell. (The leftmost cell is used for positioning on existing columns.)

    A new column is inserted. A blue asterisk (*) appears in the leftmost cell. The default name of the column is "col_n," where "n" is a number that automatically increments by one. (The first column you insert is col_1, the second col_2 and so forth.) The column is not added to the definition files until you save the database.

    The following image shows a column inserted after the column named Head_of_Dept:

  3. Click File4Save or click .

    The save action adds the column to the definition files.

To insert a Btrieve column between columns

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the leftmost cell of the column above which you want to insert a column. (A right-pointing triangle appears in the cell, indicating the selected column )
  3. Click Edit4Insert Columns or click

    A new column is inserted. A blue asterisk (*) appears in the leftmost cell. The default name of the column is "col_n," where "n" is a number that automatically increments by one. (The first column you insert is col_1, the second col_2 and so forth.) The column is not added to the definition files until you save the database.

    The following image shows a column inserted before the column named Head_of_Dept:

  4. Click File4Save or click .

    The save action adds the column to the definition files.

To delete a Btrieve column

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click Edit4Delete Column or click .

    A red "x" appears in the gray, leftmost grid cell . The "x" indicates that the column is marked for deletion. The column is not deleted until you save the table information.

  4. Click File4Save or click .

    The save action deletes the column from the definition files.

To set a Btrieve column name

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click in the Column Name grid cell.
  4. Delete the existing column name (use the Backspace key or select the name and press Delete).
  5. Type the name you want.

    The name can be alpha-numeric, 20 characters or less.

To set a Btrieve column type

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click in the Type grid cell.
  4. Open the list for data types (click ).
  5. Scroll to the data type you want.
  6. Click the data type you want.

For a listing of data types, see Pervasive.SQL Supported Data Types in SQL Engine Reference.

To set a Btrieve column size

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click in the Size grid cell.

    You can set a size only for applicable data types, such as CHAR. If size is not applicable, you will be unable to position the cursor in the Size grid cell.

  4. Delete the existing size (use the Backspace key or select the name and press Delete).
  5. Type the size you want.

To set decimal places for a Btrieve column

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click in the Decimal grid cell.

    You can set a decimal value only for applicable data types.

  4. Delete the existing value (use the Backspace key or select the name and press Delete).
  5. Type the decimal value you want.

    Decimal specifies the number of significant digits that are to the right of the decimal point for floating point values.

To set a Btrieve column to allow nulls

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

For detailed information about null values, see Null Value in the Pervasive.SQL Programmer's Guide, which is part of the Pervasive.SQL Software Developer's Kit (SDK).

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click the option box in the Null grid cell.

    You can allow nulls only for applicable data types. A shaded square indicates that null values do not apply to the data type.

    A checkmark in the box indicates that nulls are allowed for the column. Lack of a checkmark indicates that the column cannot be blank (that is, for every record, the column must contain a value other than null).
    Option Box State
    Meaning
    Nulls allowed
    Nulls disallowed
    Nulls do not apply

    Also see Null Values .

To set case sensitivity for a Btrieve column

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Click on the grid indicator cell for the column you want. The indicator cell is the gray, leftmost grid cell:

    A solid, right-point triangle indicates that the column is selected.

  3. Click the option box in the Case grid cell.

    You can set a collating sequence only for applicable data types. A shaded square indicates that case sensitivity does not apply to the data type.

    A checkmark in the box indicates that column values are case insensitive. Lack of a checkmark indicates that column values are case sensitive.
    Option Box State
    Meaning
    Case insensitive
    Case sensitive
    Case does not apply

To change Btrieve column position on the GUI

Ensure that Table Designer is in unlinked mode. See To change Table Designer mode . Tasks performed on the Btrieve tab affect only the table definition files. The data files are not modified.

  1. Click View4Btrieve Data or click the Btrieve tab.
  2. Specify where to position the column.
    1. Click Edit4Move Up (or click )to move the column up one grid row.
    2. Click Edit4Move Down (or click ) to move the column down one grid row.

      Note that moving a column up or down changes the position only on the Table Designer GUI and in the data definition files. The data remains unaffected.


Prev
Table Designer GUI Visual Reference
Contents
Up
Check for Revisions
Next
SQL Data Manager