Created
January 24, 2018 09:38
-
-
Save tompazourek/8cece2380739a8054d322250646a1ed6 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
USE MASTER | |
ALTER DATABASE [DatabaseOldName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
ALTER DATABASE [DatabaseOldName] MODIFY NAME = [DatabaseNewName] | |
ALTER DATABASE [DatabaseNewName] SET MULTI_USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment