Is there any way by which i can add more than 16 columns in clustered index.
As of SQLserver 2008 , no. However , I suspect the bottleneck is somewhere else if you require a clustered index on more than 16 columns.
No. further, you are limited to a total of 900 bytes of data for the combined key size.
Quoting from the Create Index reference page.
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. For more information about variable type columns in composite indexes, see the Remarks section.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With