Skip to content

Instantly share code, notes, and snippets.

@gprasant
Created June 15, 2012 09:03
Show Gist options
  • Save gprasant/2935519 to your computer and use it in GitHub Desktop.
Save gprasant/2935519 to your computer and use it in GitHub Desktop.
USE {dbname}
GO
EXEC sp_changedbowner 'sa'
ALTER DATABASE {dbname}SET TRUSTWORTHY ON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment