title: SQL Variable Declaration Error
body: <p>I am able to connect to a SQL Server 2012 instance using (Oracle) SQL developer.</p>
  
  <p>I a trying to create some dynamic SQL to query the database.</p>
  
  <p>However, when I run the SQL statement:</p>
  
  <pre><code>DECLARE @SQLquery as NVARCHAR(MAX) = ''
  </code></pre>
  
  <p>then I get the following error message:</p>
  
  <blockquote>
    <p>Error starting at line : 2 in command -<br>
    DECLARE @SQLquery as NVARCHAR(MAX) = '';<br>
    Error report -<br>
    Invalid JDBC escape syntax at line position 24 '=' character expected.`</p>
  </blockquote>
  
  <p>Does anyone know what the problem is here?</p>