SQL Server 2000 Standard, Windows 2003
My employee removed the "BUILTIN \ Administrators" group from SQL Server, which resulted in the SQL Server Agent not working. All my TSQLs for database synchronization have stopped working.
I have administrator rights on the server and my database user is in the sysadmin role.
Does anyone have any ideas how to get "BUILTIN \ Administrators" back without restoring the main database from backup?
Edit: When I try to add administrators or MACHINENAME \ Administrators using Enterprise Manager, I have this group in the list, but if I accept my choice, I have an error:
Error 15041: Windows NT user or group 'MACHINENAME\Administrators' not found. Check the name again
of course, instead of MACHINENAME I see the name of my server
Edit2: Found it
- Login as sysadmin
- Run the following TSQL
EXEC sp_grantlogin 'BUILTIN\Administrators'
and
EXEC sp_addsrvrolemember 'BUILTIN\Administrators','sysadmin'
source
share