BUG: ANSI Group By With > 16 Columns Gives Inconsistent ErrorLast reviewed: April 9, 1997Article ID: Q155893 |
The information in this article applies to:
SYMPTOMSA Group By clause with more than 16 non-aggregate columns can cause 2 different errors depending on the number of columns. If there are 17 non- aggregate columns, the following error will be returned:
Msg 415, Level 16, State 1 The current query would require an index on a work table to be built with 15 keys. The maximum allowable number of keys is 16.If there are more than 17 non-aggregate columns the following error will be returned:
Msg 253, Level 16, State 1 Maximum number of group-by expressions exceeded (16 max, 17 found). WORKAROUND
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe 415 error message reports the number of key columns incorrectly as 15. The 253 error message always reports that 17 non-aggregate columns were found no matter how many there actually are in the Group By clause.
|
Additional query words: aggregate
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |