title: Move a table from one database to another database SQL Server
body: <p>I have a database <code>DB_1</code> which has an empty table <code>T1</code> with 5 columns.</p>
  
  <p>I want to move this table to another database <code>DB_2</code> on the same SQL Server. </p>
  
  <p>I have tried to use this command:</p>
  
  <pre><code>alter table DB_1.T1 rename DB_2.T1
  </code></pre>
  
  <p>but this showing error.</p>
  
  <blockquote>
    <p><em>Msg 102, Level 15, State 1, Line 1<br>
    Incorrect syntax near 'rename'.</em></p>
  </blockquote>
  
  <p>Please help.</p>