
Implementation Considerations
The following table lists the maximum values that apply to clustered, nonclustered, spatial, filtered, and XML indexes. Unless specified, the limitations apply to all index types.
|
Maximum index limits
|
Value
|
Additional information
|
|---|
|
Clustered indexes per table
|
1
|
|
|
Nonclustered indexes per table
|
249
|
Includes nonclustered indexes created by PRIMARY KEY or UNIQUE constraints, and filtered indexes, but not XML indexes.
|
|
XML indexes per table
|
249
|
Includes primary and secondary XML indexes on xml data type columns.
Indexes on XML Data Type Columns
|
|
Spatial indexes per table
|
249
|
Working with Spatial Indexes (Database Engine)
|
|
Number of key columns per index
|
16*
|
Clustered index is limited to 15 columns if the table also contains a primary XML index or any spatial indexes.
Maximum Size of Index Keys.
|
|
Index key record size
|
900 bytes*
|
Does not apply to XML indexes or spatial indexes.
For a table to support spatial indexes, the maximum index key record size is 895 bytes.
Maximum Size of Index Keys.
|
*You can avoid index key column and record size limitations of nonclustered indexes by including nonkey columns in the index. For more information, see Index with Included Columns.