title: Create Schema MS SQL won't work in IF-Statement
body: <p>Why does this give an error:</p>
  
  <pre><code>IF(SCHEMA_ID('AM') IS NULL)
  BEGIN
      CREATE SCHEMA AM
      GO
  END
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>IF(SCHEMA_ID('AM') IS NULL)
  BEGIN
      Print 'null'
  END
  </code></pre>
  
  <p>And the create schema statement on one row works, but not the create schema inside the if-statement.
  So they both work individually, but not together.</p>