title: error: ALTER DATABASE statement not allowed within multi-statement transaction
body: <p>I'm trying to run the following query, but it give me the 
  following error message: </p>
  
  <blockquote>
    <p>ALTER DATABASE statement not allowed within multi-statement
    transaction.</p>
  </blockquote>
  
  <p>the query is:</p>
  
  <pre><code> ALTER DATABASE TSQL2012
   SET READ_COMMITTED_SNAPSHOT ON;
  </code></pre>
  
  <p>and as shown in the pic: any idea why?</p>
  
  <p><a href="https://i.stack.imgur.com/zpxZ3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zpxZ3.png" alt="enter image description here"></a></p>