title: How to force sql server to execute one command at a time without using GO?
body: <p>I would like to make sure that a series of commands are executed in a serial way, like in</p>
  
  <pre><code>update TABLE1...
  update TABLE2...
  update TABLE3...
  </code></pre>
  
  <p>I would like that <code>update TABLE2</code> starts only when <code>update TABLE1</code> has completed.</p>
  
  <p>Of course I can do this with GO:</p>
  
  <pre><code>update TABLE1...
  GO
  update TABLE2...
  GO
  update TABLE3...
  GO
  </code></pre>
  
  <p>But in this case i will lose all the local variables.</p>
  
  <p>Is there an easy way to perform what I need? Thanks.</p>