NetInverse Developers Blog

March 8, 2009
Category: SQL — Tags: , , — admin @ 12:23 am

SQL server’s non cluster index has two limitations:

  • Only 16 columns can be included
  • The maxium size of the index key can be only 900 bytes

With SQL 2005, you can overcome these limitations by using INCLUDE:

CREATE INDEX IDX_FOO ON FOO (COL1, COL2) INCLUDE (COL3)

©2009 NetInverse. All rights reserved. Powered by WordPress