T-SQL » Indexes » Creating an Index

Syntax:
CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ]
    INDEX index_name ON table ( column1, ... )
[ WITH
       [ PAD_INDEX ]
       [ [ , ] FILLFACTOR = fillfactor1 ]
       [ [ , ] IGNORE_DUP_KEY ]
       [ [ , ] DROP_EXISTING ]
       [ [ , ] STATISTICS_NORECOMPUTE ]
]
[ ON filegroup1 ]
UNIQUE
Indicates that a unique index is to be created.
CLUSTERED
Indicates that the index created is a clustered index.
NONCLUSTERED
Indicates that the index created is a nonclustered index.
index_name
Is the name of the index.
table
The name of the table on which the index is to be created.
column1, ...
The column or columns to which the index is to be applied.
PAD_INDEX
Specifies the space to be left open on each page (node) in the intermediate levels of the index. (This is useful only when FILLFACTOR is specified).
FILLFACTOR = fillfactor1
Specifies the fillfactor for the index as fillfactor1.
IGNORE_DUP_KEY
Controls what happens when an attempt is made to insert a duplicate key value into a column that is part of a unique clustered index.
DROP_EXISTING
Specifies that the named, preexisting clustered or nonclustered index should be dropped and the specified index rebuilt.
STATISTICS_NORECOMPUTE
Specifies that out-of-date index statistics are not automatically recomputed.
ON filegroup1
Creates the specified index on the given filegroup1.

An INDEX is created using the CREATE INDEX command.

Indexes may be: