Skip to content

Instantly share code, notes, and snippets.

@DaveGoosem
Created May 16, 2013 00:17
Show Gist options
  • Save DaveGoosem/5588490 to your computer and use it in GitHub Desktop.
Save DaveGoosem/5588490 to your computer and use it in GitHub Desktop.
Forcibly changes the owner of a Databse
--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