SQL Server Agent Fails to start - MSDB not available for normal access

My SQL server fails to start the SQL Server Agent and comes up with the following error,
'SQLServerAgent cannot start because the msdb database is not available for normal access'

When trying to start it it logs the startup event in the Event viewer straight away
(error code 103)
Then it logs an event 102 - SQLServerAgent successfully stopped

I would appreciate any ideas on this one
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
Hi milcp,

can you you check whether the UserAccess for MSDB is set to  RESTRICTED_USER. ; use the following statement

exec sp_helpdb msdb ;  -- and check the status field

If so, then run the following

exec sp_dboption 'msdb','dbo use only',false

After execution , Start the SQL agent service


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1. Verify that MSDB can be connected using sa account.
2. If yes, then check the account that you used to start the SQL Server Agent. You can find this out by going to Start - Program - SQL Server 2005 - Configuration Tools - Configuration Manager. Right click and select properties on SQL Server Agent. Make sure that the account used has access to MSDB.

Thats it I think.

Aneesh RetnakaranDatabase AdministratorCommented:
Split points to aneeshattingal and ericpete
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.