Entering content frame

Procedure documentation Creating an Index Locate the document in its SAP Library structure

Use

You can use SQL Studio to create new indexes for database tables.

Prerequisites

You have the necessary user authorizations and the user attribute NOT EXCLUSIVE.

Note

For an explanation of user authorizations and user attributes, see the User Concept section of the documentation The SAP DB Database System and the Authorization section of the Reference Manual: SAP DB.

Procedure

...

       1.      In the Catalog Manager select the database table that you want to create an index for, and choose Catalog Manager ® New ® Index Definition.

       2.      In the Index Name field, enter a name for the index.

       3.      In the In Index field, choose Yes for the columns that you want to index values for.

       4.      To sort the index values in ascending or descending order, select the option ASC or DESC in the Sort field.

       5.      To change the sequence of the table columns, select a table column and use the Ý ß, arrows to move it up or down.

       6.      Select the required options:

Unique

Ensures the uniqueness of the indexed columns

Index Name Uppercase

Automatic conversion of table names and column headers into upper case

       7.      Choose Table Definition ® Create Index.

       8.      To export the SQL statement for creating the index to the SQL dialog, choose Index Definition ® Export to SQL Dialog.

Note

For information on the syntax of CREATE INDEX statements, see the CREATE INDEX Statement section of the Reference Manual: SAP DB.

 

Leaving content frame