Created
November 12, 2019 21:21
-
-
Save greggnakamura/6589ed829a3d4005f71a44ae41d1d08a to your computer and use it in GitHub Desktop.
SQL Server: Rename DB with alter and rename
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 exeterHospital | |
set single_user with rollback immediate; | |
Go | |
alter database exeterHospital modify name = exeterHospital_prep_for_9_to_10_upgrade | |
GO | |
alter database exeterHospital_prep_for_9_to_10_upgrade set multi_user | |
Go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment