//*Rename MSSQL Database name*// alter database mydb modify name = OLD; //* Using SP_RENAME*// SP_RenameDb N'OLD_DB', 'NEW_DB';
RENAME DATABASE MODIFY NAME=emptestdb;