title: Changing the name of a SQL database
body: <p>What is the correct procedure to rename a database?</p>
  
  <p>Example: I have a database that I can access with SQL Server Management Studio and has a name like "MyDatabase". Phisical files of this database are </p>
  
  <ul>
  <li>MyDatabase.mdf</li>
  <li>MyDatabase_log.ldf</li>
  </ul>
  
  <p>How can I rename these logical and physical names to "MyNewDatabase"?</p>
  
  <p>thanks for helping</p>