title: 'CREATE VIEW' must be the first statement in a query batch
body: <p>This is my script in <code>C#</code>: </p>
  
  <pre><code>exec sp_executesql N'
  IF OBJECT_ID(N''RealEstate.vwContract'', N''V'') IS NOT NULL
    DROP VIEW RealEstate.vwContract
  
  CREATE VIEW RealEstate.vwContract
  AS
    SELECT RealEstate.Contract.ID .... (Rest of Statement omitted for brevity)
  </code></pre>
  
  <p>The error shows up:</p>
  
  <blockquote>
    <p>Msg 111, Level 15, State 1, Line 1<br>
    'CREATE VIEW' must be the first statement in a query batch.</p>
  </blockquote>
  
  <p>Please help me.</p>