Hi Tommy
I have SP4 installed. Thanks for your advice anyways.
Edwin
Main Topics
Browse All TopicsHi experts
I got the following error when I tested emailing to the operator in Sql Server Agent.
"Error 22022 : SQLServerAgent Error. The SQLServerAgent mail session is
not running; check the mail profile and/or the SQLServerAgent service
startup account in the SQLServerAgent properties dialog."
However, if I stopped and then started the SQL Server Agent again, I can send email to the operator successfully. The problem happened again when the server is restarted.
Here are some checks on my server.
- Running SQL2000 on SBS2003 (WIN2003). Outlook client 2003.
- Mail profile is using Exchange 2003, not POP3
- Mail Profile test in Sql Server Agent is alway OK even though I cannot send email to operator.
- SQL Server Agent service startup account = SQL server service startup account = mail profile mail box AD account
- SQL server agent is set to start automatically with Sql Server (which is not the default setting. I don't understand why?)
Have you came acrossed situation like this?
Edwin
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
After consulting MS support, it appeared (not proved) that the problem was caused by having the SqlServerAgent service started too early when Exchange service is not yet ready for providing the mail profile information. Anyway I used the following work around to add dependency to the SqlServerAgent service to delay its start after Exchange. Then the problem did not appear again.
1. Run regedit
2. local the key HKEY_LOCAL_MACHINE\SYSTEM\
3. Edit DependOnService and add MSExchangeIS
Edwin
Business Accounts
Answer for Membership
by: TommyTupaPosted on 2005-11-11 at 06:21:04ID: 15273605
I had a similar problem which became solved with the install of sp3a and a reboot. Is this installed on your server?