title: MS SQL - Variable in a variable
body: <p>I've been wondering if it's possible to declare and set a variable within the definition of another variable.
  For example:</p>
  
  <pre><code>declare @variable varchar(250)
  
  set @variable =
  
  'INSERT INTO [BLAH] (Nope, Hype, Friends)
  VALUES (declare @value varchar(250) set @value = 'example' exec @value, @value, @value)'
  
  exec @variable
  </code></pre>
  
  <p>I'm probably doing multiple really basic mistakes here - just trying to understand as much as fast as possible</p>