Rename Database

How can we rename a Database with query?

Questions by seemu123   answers by seemu123

Showing Answers 1 - 7 of 7 Answers

dinu_26

  • Nov 11th, 2008
 

Syntax of renaming the database:

sp_renamedb old_database name new_database name



Eg:  name of the database is tree. Now if you need to change the database as three. So the query for changing the database as follows:


sp_renamedb tree three

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions