I can confirm
ALTER DATABASE [oldname] MODIFY NAME = [newname];
works without connecting to the wizard first, but if you rename the restored Azure database; don't miss the space before the final hyphen
ALTER DATABASE [oldname_2017-04-23T09 -17Z] MODIFY NAME = [newname];
And get ready for the confusing error message in the Visual Studio 2017 message box when you execute the ALTER command
Msg 0, Level 20, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded.
Robert Apr 29 '17 at 8:02 2017-04-29 08:02
source share