SQL Server error code
SQL Server error 1008
SQL Server raises error 1008 at severity 15, which marks a problem with the query or data that you can correct.
The SELECT item identified by the ORDER BY number %d contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name.
| Msg | 1008 |
|---|---|
| Severity | 15 |
| Group | 1000–1999 |