question

debasish 1 avatar image
debasish 1 asked

sql server aegnt is not starting

In log it is showing following error

                    
! [298] SQLServer Error: 229, EXECUTE permission denied on object 'sp_sqlagent_has_server_access', database 'msdb', schema 'dbo'. [SQLSTATE 42000] (ConnIsLoginSysAdmin)                    
2009-11-10 14:52:42 - ! [298] SQLServer Error: 229, EXECUTE permission denied on object 'sp_sqlagent_get_startup_info', database 'msdb', schema 'dbo'. [SQLSTATE 42000]                     
2009-11-10 14:52:42 - ! [298] SQLServer Error: 229, INSERT permission denied on object 'syssessions', database 'msdb', schema 'dbo'. [SQLSTATE 42000]                     
2009-11-10 14:52:42 - ! [000] Error creating a new session                    
2009-11-10 14:52:42 - ! [298] SQLServer Error: 15247, User does not have permission to perform this action. [SQLSTATE 42000] (DisableAgentXPs)                    
2009-11-10 14:52:42 - ? [098] SQLServerAgent terminated (normally)                    

I have two instance, name instance it is running, But for default instance it is not started.

Kindle help me.

sql-agent
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

SirSQL avatar image
SirSQL answered
Did you recently change the account used to start the SQL agent? If so ensure that you are doing so through the SQL Server configuration manager. Either way use the configuration manager to reset the Agent account and see if you still get the same error.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kristen avatar image
Kristen answered

Is the userID / password that the agent is trying to connect with wrong?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zendo avatar image
zendo answered
verify if the user at service agent have SYSADMIN privileges
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.