Created
May 30, 2017 07:43
-
-
Save MajidSafari/02af171fd94140287448b088688a6443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER DATABASE [old_name] | |
SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
GO | |
ALTER DATABASE [old_name] | |
MODIFY NAME = [new_name] | |
GO | |
ALTER DATABASE [new_name] | |
SET MULTI_USER | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment