title: How to check if a variable is already declared (T-SQL)?
body: <p>When I write</p>
  
  <pre><code>DECLARE @x INT
  </code></pre>
  
  <p>Is there a way to check whether the variable @x has already been declared or not?</p>