Rename SQL Azure database?

后端 未结 7 1198
南旧
南旧 2020-12-08 09:04

How can i rename the database in sql Azure?

I have tried Alter database old_name {MODIFY NAME = new_name} but not worked.

Is this feature avail

7条回答
  •  情书的邮戳
    2020-12-08 09:27

    Just so people don't have to search through the comments to find this... Use:

    ALTER DATABASE [dbname] MODIFY NAME = [newdbname]
    

    (Make sure you include the square brackets around both database names.)

提交回复
热议问题