Home

Duplicate values should not be passed as arguments

Rule description

  • Duplicate values should not be passed as arguments

 

Non-compliant Code Example

DECLARE @p varchar(50);
DECLARE @name varchar(50);
SET @name = dbo.GetText(@p, @p); -- Non compliant code (Duplicate variable/values passed as arguments)
Visual Expert 2020
 VETSQLRULE69