Last active
December 30, 2015 00:39
-
-
Save derekmurawsky/7751173 to your computer and use it in GitHub Desktop.
Add BUILTIN\Administrators as a sysadmin is MSSQL. This was broken/fixed, depending on your POV, in newer versions of SQL server. This will restore it. Be aware, this is a security risk and was changed for a reason.
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
EXEC sp_grantlogin 'BUILTIN\Administrators' | |
EXEC sp_addsrvrolemember 'BUILTIN\Administrators','sysadmin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment