CREATE NONCLUSTERED INDEX IndexName ON Schema.TableName (ID ,int1 ,int2 ,text1 ,text2 ,text3 ,text4 ,text5)
Warning! The maximum key length is 900 bytes. The index 'IndexName' has maximum length of 938 bytes. For some combination of large values, the insert/update operation will fail.
The way round this in sql 2005+ - INCLUDED COLUMNS
Add the column as an included column >
CREATE NONCLUSTERED INDEX IndexName ON Schema.TableName (ID) INCLUDE (int1 ,int2 ,text1 ,text2 ,text3 ,text4 ,text5)
No comments:
Post a Comment