Last active
October 31, 2017 18:01
-
-
Save ronascentes/b4a61f55e2b1503b2b31f4c7c9c18cdd to your computer and use it in GitHub Desktop.
Rename database
This file contains hidden or 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 | |
GO | |
ALTER DATABASE [ASPState] SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
GO | |
ALTER DATABASE [ASPState] MODIFY NAME = ASPState_NEW | |
GO | |
ALTER DATABASE ASPState_NEW SET MULTI_USER | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment