alter database name [duplicate]
How to alter database name from test to test1?
If its a SQL Server 2000 or 2005 database use the following T-SQL: command to make the database name change.
EXEC sp_renamedb 'oldName', 'newName'
The new command that should be used for SQL Serer 2005 and beyond is:
ALTER DATABASE oldName MODIFY NAME = newName
For Oracle database see here
精彩评论