title: Syntax error when trying to change schema in SQL Server database
body: <p>I am trying to rename the schema for a dozen tables in an old database on SQL Server 2005. I'm using SQL Server Management Studio Express version 9.0. Based on detailed advice found here, as well as several forums on other sites, I've been trying this straightforward command: </p>
  
  <pre><code>ALTER SCHEMA newschemaname TRANSFER oldschemaname.table1
  </code></pre>
  
  <p>I consistently get this error: </p>
  
  <blockquote>
    <p><em>Msg 156, Level 15, State 1, Line 1<br>
    Incorrect syntax near the keyword 'SCHEMA'</em></p>
  </blockquote>
  
  <p>It's the same whether I run it directly in the "New Query" window or build it into a stored procedure.</p>
  
  <p>The database's owner is "SA," dating back to when my web host (the physical server's owner) first set up this database years ago. This makes me think there might be a permissions issue, or some obscure mismatch between the owner name and the login I'm using. But if that was true, I'd expect the error to tell me I don't have rights to execute that command. </p>
  
  <p>Is there some obvious syntax error I'm missing, or do I need to delve deeper into the ownership and permissions to get the rights to fix this?</p>