Home All Groups Group Topic Archive Search About
Author
16 Sep 2005 4:34 PM
David
We've just created the "sp_send_cdosysmail" stored procedure on our sql
server box. When running the test call from Query Analyzer to see if it
works, we get back the message: "-2147220978". We've searched and searched,
and we can't find this error listed anywhere. Does anyone know what this
means?

Thanks.

Author
16 Sep 2005 4:49 PM
Perayu
Can you post your DDL? It looks like the data type has problem, just guess.

Perayu


Show quote
"David" <Da***@discussions.microsoft.com> wrote in message
news:B04478DB-183F-4B14-A27B-FFF35303080B@microsoft.com...
> We've just created the "sp_send_cdosysmail" stored procedure on our sql
> server box. When running the test call from Query Analyzer to see if it
> works, we get back the message: "-2147220978". We've searched and
> searched,
> and we can't find this error listed anywhere. Does anyone know what this
> means?
>
> Thanks.
Author
16 Sep 2005 4:53 PM
Aaron Bertrand [SQL Server MVP]
Have you considered xp_smtp_sendmail?  See http://www.aspfaq.com/2403

This is translated to error 0x8004020E (you can do this ).  It is possible
that this is caused by (a) your SMTP server will not allow relay for the IP
address you are sending from, the domain you are sending from, or the domain
you are sending to; or (b) your SMTP server requires outgoing authentication
(much more prevalent these days).

Try running the CDO code OUTSIDE of SQL Server (e.g. from a .vbs script) and
see if you can't get more detailed messages there.  You can also try a
different SMTP server.

For the VBS syntax involving outgoing authentication, see
http://www.aspfaq.com/2026 (sorry, you'll have to translate this to T-SQL
and sp_OA syntax yourself).  But I still recommend straightening out your
SMTP server and using xp_smtp_sendmail as opposed to CDO.

A



Show quote
"David" <Da***@discussions.microsoft.com> wrote in message
news:B04478DB-183F-4B14-A27B-FFF35303080B@microsoft.com...
> We've just created the "sp_send_cdosysmail" stored procedure on our sql
> server box. When running the test call from Query Analyzer to see if it
> works, we get back the message: "-2147220978". We've searched and
> searched,
> and we can't find this error listed anywhere. Does anyone know what this
> means?
>
> Thanks.
Author
16 Sep 2005 5:00 PM
Aaron Bertrand [SQL Server MVP]
> This is translated to error 0x8004020E (you can do this

.... using calc.exe in scientific view.  Take the big number you got, paste
into Decimal view, and then switch to Hex view.
Author
16 Sep 2005 6:53 PM
David
Thanks for your reply.
Nothing seems to help. Tried direct calls through Query Analyzer and via
from within client app.
In addition to sending emails from within .net client apps, we also need to
send email via the Reporting Services subscriptions. Would we be able to do
this if we went the xp_smtp_sendmail route?



Show quote
"Aaron Bertrand [SQL Server MVP]" wrote:

> Have you considered xp_smtp_sendmail?  See http://www.aspfaq.com/2403
>
> This is translated to error 0x8004020E (you can do this ).  It is possible
> that this is caused by (a) your SMTP server will not allow relay for the IP
> address you are sending from, the domain you are sending from, or the domain
> you are sending to; or (b) your SMTP server requires outgoing authentication
> (much more prevalent these days).
>
> Try running the CDO code OUTSIDE of SQL Server (e.g. from a .vbs script) and
> see if you can't get more detailed messages there.  You can also try a
> different SMTP server.
>
> For the VBS syntax involving outgoing authentication, see
> http://www.aspfaq.com/2026 (sorry, you'll have to translate this to T-SQL
> and sp_OA syntax yourself).  But I still recommend straightening out your
> SMTP server and using xp_smtp_sendmail as opposed to CDO.
>
> A
>
>
>
> "David" <Da***@discussions.microsoft.com> wrote in message
> news:B04478DB-183F-4B14-A27B-FFF35303080B@microsoft.com...
> > We've just created the "sp_send_cdosysmail" stored procedure on our sql
> > server box. When running the test call from Query Analyzer to see if it
> > works, we get back the message: "-2147220978". We've searched and
> > searched,
> > and we can't find this error listed anywhere. Does anyone know what this
> > means?
> >
> > Thanks.
>
>
>
Author
16 Sep 2005 7:09 PM
Aaron Bertrand [SQL Server MVP]
> send email via the Reporting Services subscriptions. Would we be able to
> do
> this if we went the xp_smtp_sendmail route?

Well, <something> calls sp_send_cdosysmail, right?  Couldn't <something>
call xp_smtp_sendmail just as easily?

AddThis Social Bookmark Button