Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (4k points)
Rename SQL Azure database?

1 Answer

0 votes
by (9.6k points)
edited by

Before you start renaming, make sure you're using the master database and not connecting to the system database. System databases can not be renamed. 

There are multiple ways to rename an SQL database, you can check them all out in this document

One of the simplest query commands that can be used to solve your problem is: 

ALTER DATABASE [dbname] MODIFY NAME = [newdbname]
And also check out Intellipaat's Azure Course and become an Azure expert

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...