Configure DB Mail Profile in SQL Agent for Automated Alerts
In the recent times I have seen so many people asking the same question in MSDN forums on how do I activate database mail for the use of SQL server agent alerts system. So I am taking a chance to document it by using screen shots which can help others.
Normally what the newbies tending to do is, once they configured database mail they expect the SQL agent to use it for alerting purposes. To be clear on this part we should make sql server agent to use any one of the configured mail profiles of database mail system otherwise the agent is not going to use them
Step 1:
Configure SQL database mail system , my friend Sugesh has an article in the same site at and this explains the db mail configuration pretty much step by step so I am not covering that part.
Step2:
Right click SQL server agent and go to properties. Now select Alert system tab as shown in fig , where you can see the mail profile is disabled.

Step3:
Now enable the mail profile by ticking it and you get two options.
- Database mail
- SQL mail
Choose database mail as shown in figure

Step 4:
After the database mail is selected then we have to select one of the available database mail profile. I have shown LEKS as my mail profile and I have added that.

Then click OK
Step 5:
We are almost done now and the final and most important part now is to restart the SQL agent services from services.msc or SSMS or SQL configuration manager.
Tags: alerts, automated alert, mail profile, operator, sql agent
Trackback from your site.
DotNetShoutout
| #
SQL-Articles ยป Script to get data file usage and autogrowth details…
Thank you for submitting this cool story – Trackback from DotNetShoutout…
VidhyaSagar
| #
Saeed,
I don’t think so you can stop it in SMO, instead you need to turn off password policy for that login
VidhyaSagar
| #
HI Naveed,
Could you please check the article wrote by deepak on fulltext? http://sql-articles.com/articles/dba/sql-server-2005-full-text-search/
VidhyaSagar
| #
Thanks Ashish, I’ve updated the script.
Ashish
| #
I was just searching some trace related articles and gone through your article. Found one incorrect information,
to disable the trace, the command should be
dbcc traceoff (….)
you might have by mistake mentioned it as traceon for disabling as well.