text: ﻿
  create procedure ProcWithChainedParameterWriteOnlyVariables 
      @A int  -- @A is only written to/used in the setting of @B . This should be flagged as a problem
  as
  begin
      declare @B int  -- @B is only written to . This should be flagged as a problem
      set @A = 1 
      set @B = @A
  end