title: Can you quote variable identifiers and parameter identifiers in TSQL?
body: <p>Is it possible to quote variable and parameter identifiers in TSQL. The documentation appears to suggest that it is possible. However an error is thrown when executing variable names in quotes.</p>
  
  <pre><code>-- This works fine, as one would expect
  DECLARE @ExampleVariableGood bigint
  
  -- Error - "can" variable names be quoted identifiers?
  DECLARE [@ExampleVariableBad] bigint
  </code></pre>
  
  <p>When executing script the following error is thrown:</p>
  
  <pre><code>Msg 155, Level 15, State 2, Line 5
  'bigint' is not a recognized CURSOR option.
  </code></pre>
  
  <p>The documentation states, variable identifiers must follow the same rules as for all identifiers:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/declare-local-variable-transact-sql?view=sql-server-2017" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/sql/t-sql/language-elements/declare-local-variable-transact-sql?view=sql-server-2017</a></p>
  
  <p>This is an odd request, the only reason we need this to work is a SQL Studio tool auto formatting bug incorrectly quotes variable names, something the client does not want to change!</p>