title: Multiple commands on one line in SQL Server 2005
body: <p>I would like to execute multiple statements on one line in SQL Server 2005. How do I do the following on a single line:<pre><code>
  use master
  go
  sp_spaceused mytable
  </code></pre></p>
  
  <p>When I try <code>use master; go; sp_spaceused mytable</code> I get <code>Incorrect syntax near 'go'</code>.</p>
  
  <p>When I try <code>use master go sp_spaceused mytable</code> I get <code>Incorrect syntax near 'go'</code>.</p>