Created
May 16, 2013 00:17
-
-
Save DaveGoosem/5588490 to your computer and use it in GitHub Desktop.
Forcibly changes the owner of a Databse
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
--replace <newOwner> with DB user | |
exec sp_changedbowner '<newOwner>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment