title: Resolving 'Unclosed quotation mark after the character string' on MS SQL Server generated .sql file
body: <p>I am trying to recreate a remote db on a local SQL Server install. I have a ~(6GB) .sql file generated from the remote db SSMS and am using sqlcmd locally to attempt the import.</p>
  
  <p>Here is the command I am using:</p>
  
  <pre><code>sqlcmd -S SERVER -a 32000 -i inputfile.sql -o output.txt
  </code></pre>
  
  <p>Around 2200 records in it gives me: <code>Unclosed quotation mark after the character string</code></p>
  
  <p>Is there something I can do on the import settings (or even create a new exported .sql file) that will resolve this? It's extremely odd that the server generated sql does not appear to be valid sql.</p>