What is the correct procedure to rename a database?
Example: I have a database that I can access with SQL Server Management Studio and has a name like \"MyDatabase\". Ph
There are several ways to make this change, however to rename the physical database files at operating system level you will have to take the database offline
sp_renamedb 'olddatabasename','newdatabasename'
but make sure database is not in use.