| title | Sorting Limitations | ||
|---|---|---|---|
| description | Sorting Limitations | ||
| author | David-Engel | ||
| ms.author | v-davidengel | ||
| ms.date | 01/19/2017 | ||
| ms.service | sql | ||
| ms.subservice | connectivity | ||
| ms.topic | reference | ||
| helpviewer_keywords |
|
The maximum length of a sort key in a GROUP BY clause, ORDER BY clause, SELECT DISTINCT statement, or outer join is 255 bytes; the maximum length of all sort keys in a sort row is 65,500 bytes.