title: SQLCMD stops at first GO it reaches in script
body: <p>Essentially i need to run a quite large SQL script that wont run in SSMS.</p>
  
  <p>Using sqlcmd to input a  .sql file however will simply seem to stop at first <code>GO</code> statement it reaches. </p>
  
  <p>All it seems to run is:</p>
  
  <pre><code>USE [master]
  GO
  </code></pre>
  
  <p>CMD  writes: "Changed database context to 'master'"</p>
  
  <p>And then its idle, no cpu usage and bare minimal ram usage.</p>
  
  <p>Even with minimized script just to create a new, empty DB, the result is the same.</p>
  
  <p>the string i used would be like this:</p>
  
  <pre><code>sqlcmd -S 127.0.0.1 -U x -P x -i D:\x\f.sql 
  </code></pre>
  
  <p>it connects  to the db just fine, however the included .sql script still wont run.</p>
  
  <p>Setting errorlevel to 1 wont help, it still   stops/halts, simply no message then.</p>