The IBM® Database Add-Ins for Visual Studio
simplify the process of creating IBM database relational indexes.
You can use one of the following tools to create a relational index:
The IBM Table Designer, which generates the index as part of
a table definition in the Server Explorer.
The DB2® Create Index Wizard, with which you can
generate the index in
a database in the Server Explorer or
generate an index
script in the Solution Explorer.
The Visual Studio Code Editor, with which you can manually
insert the SQL statement in the index script file.
With the wizard and the designer, you provide information about
the index, specify the columns that you want to define as part
of the index, and specify script options for the index.
To create a relational index by using the
designer:
Start creating a table or changing a
table definition by using the IBM Table Designer.
From the IBM Table Designer menu,
select Indexes.
The Indexes view of the IBM Table Designer is displayed.
Add an index and define its properties and columns.
For detailed information about fields in the Indexes view, see
Indexes, Designer.
Continue creating the table or changing the table definition.
To create a relational index by using the wizard
(from the Server Explorer):
In the Server Explorer, right-click Tables under your data
connection, and then select Add Index with Wizard
on the shortcut menu.