SQL Server 2008 R2 – Adding Group to Sysadmin Fixed Server Role

sql-server-2008-r2

How can i add a group to the sysadmin fixed server role in SQL Server 2008 R2?

See my related question for details step-by-step screenshots detailing showing that you're not allowed to add groups to the sysadmin role.

Background information

Before SQL Server 2008 R2, members of the local Administrators group were automatically added to the sysadmin fixed server role. Starting with SQL Server 2008 R2 that group is no longer added. The new recommended mechanism is to:

…create a separate Windows group containing the appropriate DBAs and
grant that group the sysadmin role in the database.

How do i "grant a Windows group the sysadmin role"?

See also

Related questions

Best Answer

As stated, SQL 2008 R2 no longer adds the administrators group as a SQL login by default. You first have to add the Administrators group as a SQL Server principal.

CREATE LOGIN [BUILTIN\Administrators] FROM WINDOWS

(or see this article for more information on how to add a login)

You can then add that group to the sysadmin role.

sp_addsrvrolemember
    @LogiName='BUILTIN\Administrators',
    @RoleName='sysadmin'