title: How do i convert variable name to string name?
body: <p>Assume I have the following SQL snippet in SQL Server 2012:</p>
  
  <pre><code>DECLARE @fname varchar(20), @strVarName varchar(50)
  SET @fname = 'cronus'
  
  SET @strVarName = COVERT_VARIABLE_TO_STRING_NAME ( @fname)
  
  --this should return '@fname'. this is not a value conversion this is converting a variable name to a string name 
  SELECT @strVarName 
  </code></pre>
  
  <p>How do I do this?</p>