Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to check if my DB mails are running?


How to check if my DB mails are running?

Author
Message
Prince Charming
Prince Charming
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 51
Hello all,

Greetings!

I have a situation eating my head! We have around 6-7 servers of 2005 and 2008 version and I am expected to check if the emails are running fine on all of them.

The problem here is, in most of the databases the SMTP settings are stored in some table and XP_SMTP_SENDMAIL procedure is used to fire mails using the details. While with some latest databases I have SP_SEND_DBMAIL procedure used (i.e. I have profile created on the server).

The SMTP settings are allowed to change from the application, which can cause the mails to go down.

What I have thought of is, using linked servers to fetch all SMTP data to send mails. But in this case I have to use XP_SMTP_SENDMAIL procedure, which I don't want to considering the advantages of SP_SEND_DBMAIL.

What could be best possible solution for this?

Many Thanks in advance.

Regards,

Shardul.
GSquared
GSquared
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14371 Visits: 9729
If you're using DBMail (sp_send_DBMail), then all the e-mails are queued and logged in msdb, and you can query the relevant tables for status, etc., pretty easily. That's what I do to check on that.

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Prince Charming
Prince Charming
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 51
Thanks for that. Ya, msdb sysmail tables are on the options, but my main target is to get identified first if mails on some db is down. I think I may have to send periodic mails say every week can do the job.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search