Home

Variables should not be self-assigned

Rule description

  • Variables should not be self-assigned

 

Non-compliant Code Example

DECLARE @Number INT = 100;;
SET @Number = @Number   --Non compliant code (Variable is self assigned)
Visual Expert 2020
 VETSQLRULE22