The topic describes the DF097 T-SQL code analysis rule.
STYLE
A parameter or variable has a different case than its declaration.
It is recommended to use the same case for parameter or variable declaration and usage, as inconsistent case may result in code breakage when deployed on a case-sensitive server instance.
Having a parameter or variable with a different case than its declaration can lead to confusion and potential errors in the code. This is because programming languages are often case-sensitive, meaning that “VariableName” and “variablename” would be treated as two separate entities. As a result, using inconsistent casing can make the code harder to read and maintain, and it may lead to unexpected behavior or bugs, especially when the code is deployed on systems that enforce case sensitivity.
DECLARE @Dim INT
SET @Dim = 0
DECLARE @Dim INT
SET @Dim = 0