Creating an
Index Using the Index Properties Dialog Box
To create
an index using the Index Properties dialog box
- In the Table Editor, open the
table where you want to define an index. The table appears in the Table
Editor window.
- Click the Indexes tab.
- In the Indexes page, right-click
and select New Index from the popup menu. The Index Properties dialog box
appears.
- In the General page, enter
the name of the index.
- Select Duplicate or Unique from
the Index Type list box.
- If the index type is Duplicate,
select Enabled or Disabled mode.
If the index type is Unique, select Disabled, Filtering with Errors, or Filtering
without Errors modes.
- Enter fill factor in the Fill
Factor spin box.
The fill factor allows for expansion of the index or for the creation of
compacted indexes. You can only set an index fill factor when the index
is first created. For a new index, the default fill factor of 90 percent.
- Check the check box to cluster
the index.
There can be only one clustered index per table.
- Click the Keys tab of the Index
Properties dialog box.
- Click the Key column and select
a table column from the list box to specify the index key.
The Keys column contains all columns for the current table. There must be
at least one key for each index.
- Click the Sort column to select
the sort order.
- Click the Location tab.
Select a storage location for the index from the Index Location list box.
- Click OK for the new index and
its keys appear in the Indexes page of the Table Editor window.
- Choose Table->Execute to
save the new index to the database.
Tips
- The name of the index must be
unique to the database, must begin with a letter or an underscore character,
and must contain only letters, digits, and underscore characters.
- Any index key columns already
used as index keys are not listed in the Keys grid.
For example, if five columns named col1 through col5, and col1 and col2
are designated in the Key column, then only col3 through col5 are available
as choices for the Key column.