Last active
May 15, 2018 12:44
-
-
Save mikerodionov/85e61d01e2d4698841082cceb98fea51 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
SELECT CONCAT('ALTER DATABASE [', name, '] SET READ_WRITE WITH NO_WAIT') | |
FROM sys.databases where is_read_only=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment