Assembly | SqlServer.Rules.dll |
Namespace | SqlServer.Rules.Design |
Class | AvoidNumericOrderByRule |
Id | SRD0025 |
Friendly Name | Avoid ORDER BY with numbers |
Category | Design |
Ignorable | true |
Applicable Types | Procedure |
Scalar Function | |
Table Valued Function |
Avoid using column numbers in ORDER BY clause.
Avoid the use of column numbers in a where clause. If someone changes the select query without updating the column number, then the sorting could inadvertently change.