• Hardy21 (12/7/2010)


    ziangij (12/6/2010)


    Is the same number (16) applicable for a clustered index in SQL Server 2008 ?

    Checked the link, could not find if the above number is different in case of clustered index. Please comment. thanks 🙂

    Yes it is.

    If you check "CREATE INDEX (Transact-SQL)" in BOL, it mentions that: " Up to 16 columns can be combined into a single composite index key. All the columns in a composite index key must be in the same table or view. The maximum allowable size of the combined index values is 900 bytes."

    Not entierly accurate. The clustered index have an exception to the 16 columns limit. It can be 15 in some cases. From the link in my previous post

    "Clustered index is limited to 15 columns if the table also contains a primary XML index or any spatial indexes."

    /T