|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 4:07 AM
Points: 26,
Visits: 43
|
|
Hi,
I've recently changed our SQL services to run under domain account instead of the local account they used to use. Since doing this i'm unable to start the agent. I got the follwing error in event viewer
SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role).
The account we are trying to start the agent with is both a local admin and has sysadmin role.
One thing i find strange is that when we connect to the instance using the service account and sql managent i can't see the properties of the agent as it's greyed out when i right click on it.
Any ideas on this - i've tried going back and running the agent as local but thet now returns the same error !
Thanks in advance, Mike.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 04, 2013 5:23 AM
Points: 35,
Visits: 127
|
|
mike.whorley (11/26/2012) Hi,
I've recently changed our SQL services to run under domain account instead of the local account they used to use. Since doing this i'm unable to start the agent. I got the follwing error in event viewer
SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role).
The account we are trying to start the agent with is both a local admin and has sysadmin role.
One thing i find strange is that when we connect to the instance using the service account and sql managent i can't see the properties of the agent as it's greyed out when i right click on it.
Any ideas on this - i've tried going back and running the agent as local but thet now returns the same error !
Thanks in advance, Mike.
Does the domain account have "permission to logon as a service" rights on the server?
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 4,434,
Visits: 7,219
|
|
Mike
It sounds as if you didn't use SQL Server Configuration Manager to make the change. Maybe you used the Services applet instead? Try using SQL Server Configuration Manager to change to Local System or something like that, then change back to your domain account.
John
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 4:07 AM
Points: 26,
Visits: 43
|
|
learning_sql (11/26/2012)
Does the domain account have "permission to logon as a service" rights on the server?
Yes it does - just double checked it in user rights assignment in local policies on the server.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 4:07 AM
Points: 26,
Visits: 43
|
|
John Mitchell-245523 (11/26/2012) Mike
It sounds as if you didn't use SQL Server Configuration Manager to make the change. Maybe you used the Services applet instead? Try using SQL Server Configuration Manager to change to Local System or something like that, then change back to your domain account.
John
Thanks John - i didn't use the config manager, however I've tried your suggestions but sadly just the same, local user or domain user return exactly the same error as previous.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 4,434,
Visits: 7,219
|
|
Sounds like you might have to do it manually, then. Try creating a login for your domain account and adding it to sysadmin. Then use SQL Server Configuration Manager to change the service to start under that account.
John
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 4:07 AM
Points: 26,
Visits: 43
|
|
Sorry John i'm not quite sure what you are saying there ?
The service account does have a login to the instance already with sysadmin role.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 4,434,
Visits: 7,219
|
|
Ah yes, so it does. I'm running out of ideas now. How about creating a named local Windows account and seeing if you can start SQL Server Agent as that?
John
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 04, 2013 5:23 AM
Points: 35,
Visits: 127
|
|
Is the domain service account a member of the local group "SQLserveragentusers$SERVERNAME$INSTANCE" or similar
EDIT - this maybe useful but we may have covered it:http://www.mssqltips.com/sqlservertip/2317/running-sql-server-agent-with-a-least-privilege-service-account/
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 4:07 AM
Points: 26,
Visits: 43
|
|
John Mitchell-245523 (11/26/2012) Ah yes, so it does. I'm running out of ideas now. How about creating a named local Windows account and seeing if you can start SQL Server Agent as that?
John
Created a new account and just made it a member for the SQLAGENT group as detailed above but still no joy.
My hunch is something in group policy is revoking the privs we are giving the domain account on this server.
|
|
|
|