tags:

views:

31

answers:

1

hi everyone will u please tell me how to alter database name from test to test1. thanks in advance

A: 

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

Zaps