473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL Server Agent + SQL Mail

Hi,
I've been able to successfully configure SQL Server Agent to send
notification emails to an appropriate Operator in the event of an alert
being fired. This all works fine on one condition - that Outlook client
is running on the server.

If Outlook is not running the alerts still be fired (i.e. the Occurance
Rate still increases as and when expected), but the emails being
generated will not be sent until the next time Outlook is opened.

Clearly it's unwise to rely on Outlook being open on the server at all
times, so I was wondering if anyone knows of a workaround to ensure
these emails are processed immediately?

I'm using SQL Server 2000 SP4 and Outlook 2003.

thanks,
Bob.

Jul 23 '05 #1
3 1495
Stu
Hi Bob,

SQLMail is one of my favorite things to hate about SQL Server; it's
difficult to trace why it doesn't work becuase so much of it has
nothing to do with SQL Server at all. Here's some of the things you
can check:

First, you must be running Exchange in order for it to work correctly.
In Outlook, under the Options, Mail Setup, verify that the Send
Immediately When Connected box is checked. Under the Send/Receive
option, you may have to schedule an automatic send/receive every few
minutes.

In essence, it sounds like an Outlook problem, not a SQL problem. You
may have to bring in an Exchange expert on this one.

Hope that helps, somehow.

Stu

Jul 23 '05 #2
Hi thanks for the response.

That was the sort of reply I was hoping for, though I don't have the
means to check the exchange server for such setting so I'll have to get
someone else to check it out.

All the best.
Bob.

Stu wrote:
Hi Bob,

SQLMail is one of my favorite things to hate about SQL Server; it's
difficult to trace why it doesn't work becuase so much of it has
nothing to do with SQL Server at all. Here's some of the things you
can check:

First, you must be running Exchange in order for it to work correctly.
In Outlook, under the Options, Mail Setup, verify that the Send
Immediately When Connected box is checked. Under the Send/Receive
option, you may have to schedule an automatic send/receive every few
minutes.

In essence, it sounds like an Outlook problem, not a SQL problem. You
may have to bring in an Exchange expert on this one.

Hope that helps, somehow.

Stu


Jul 23 '05 #3

"Stu" <st**************@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi Bob,

SQLMail is one of my favorite things to hate about SQL Server; it's
difficult to trace why it doesn't work becuase so much of it has
nothing to do with SQL Server at all. Here's some of the things you
can check:

First, you must be running Exchange in order for it to work correctly.
This is not true. This keeps getting repeated, but is inaccurate.

It is true that Outlook has to be setup in Corporate/Workgroup mode however.
My suggestion (among others) if you're NOT using Exchange is to install an
SMTP server directly on the SQL Box and lock it down so only that box can
send mail through it.

Setup Outlook 2000 (I don't believe 2003 will work at all) to send through
that SMTP server. This eliminates a whole class of problems where the
MAPI32SP.DLL can get wedged if it loses contact with the SMTP server.

After that, there's a KB article on MS's site about how to properly config
Outlook. Follow ALL of it.

Some other advice:
Make sure ALL the mailboxes (including SENT, OUTGOING, etc.) are empty. No
idea why this makes a difference, but it helps.

Also, make sure you can send it from the account SQLAadmin and SQL Server
are running under. (i.e. log in as that user and send an email.)

Then log out.

THEN start up SQLSERVERAGENT.

I will agree with Stue, it's one of the things I really dislike about SQL
Server.

However, I've found that with moving the SMTP server locally, I've had zero
problems once I got it working. That alone has made a huge difference in my
stability.
In Outlook, under the Options, Mail Setup, verify that the Send
Immediately When Connected box is checked. Under the Send/Receive
option, you may have to schedule an automatic send/receive every few
minutes.

In essence, it sounds like an Outlook problem, not a SQL problem. You
may have to bring in an Exchange expert on this one.
I'd disagree. I've seen exactly this behaviour and it appears to have to do
with how SQL Server accesses the config via MAPISP32.DLL.


Hope that helps, somehow.

Stu

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
0
by: Sean Lambert | last post by:
I'm trying to setup SQLMail on a SQL Server. The same server has an application running on it, which successfully uses Outlook as a mail client. I have setup a Mail Profile under Outlook for the...
0
by: Philip Bondi | last post by:
Hello to all: Under Enterprise Manager, select server, select management, right-click on sql server agent. On the general tab, observe the mail session. Using SQL-DMO, how can I find the mail...
1
by: dananrg | last post by:
I would like to configure e-mail alerts on my SQL Server 2000 box. However, we also run Exchange on the same machine. I've been told there could be conflicts/issues having Outlook on the same...
1
by: brianhensley | last post by:
It's a Windows 2000 Server box with SQL 2000 on it. MSSQLSERVER & SQLSERVERAGENT services are logged in as valid domain user. I set up a mail profile for that user, and can send email via Outlook...
2
by: Eric Timely | last post by:
After a trust with exchange server established the xp_SendMail gives the following error: xp_sendmail: failed with mail error 0x80070005 Prior to the trust everything worked fine. I have...
1
by: Viktor Popov | last post by:
Hi, is it possible MS SQL Server Agent to make a WebApplication in ASP.NET/C# to send e-mail using MailMessage class? If yes, how? Thank you! Viktor
42
by: scorpion53061 | last post by:
Is there a registry setting that I can read in vb.net for windows platforms that will give me the default mail server for the computer (e.g. mail.charter.net)
0
by: aj | last post by:
SQL Server 2005 SP2 64-bit I am quite confused about the SQL Server Agent Alert System. I have configured Database Mail, establishing my Profile(s) and Account(s), and specifying SMTP...
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.