SQL Server error code
SQL Server error 8126
SQL Server raises error 8126 at severity 16, which marks a problem with the query or data that you can correct.
Column "%.*ls.%.*ls" is invalid in the ORDER BY clause because it is not contained in an aggregate function and there is no GROUP BY clause.
| Msg | 8126 |
|---|---|
| Severity | 16 |
| Group | 8000–8999 |