CDO.Message Problems in live environment...

From: David Conorozzo (DavidConorozzo_at_community.nospam)
Date: 10/29/04


Date: Fri, 29 Oct 2004 12:30:02 -0700

I want to send an e-mail message with attachments from a job in SQL Server.
I chose not to use xp_sendmail b/c I don't have outlook (or any MAPI client)
on the production server and I don't want to put it on there. Also, my
production server does not have an SMTP server but can contact one.

I created a stored procedure that uses CDOSYS to create a message, attach a
file and send the message through an external SMTP server. When I tested
this on my test server, it works fine. When I move it to my production
server, it does not work.

Test Server: Win2K3 SQL Ent. w/IIS and SMTP (but also did tests using
external SMTP server address)
Production Server: Win2K3 SQL Ent., both Windows and SQL are clustered.

I also created a VB Script on the production server that used the same code
and the same SMTP server as the SQL Script and it works fine. I also tested
the SQL script without the attachment and it still did not work and gave the
same error which in decimal is -2147220960 and in Hex is 80040220. The error
means (according to some sites): The "SendUsing" configuration value is
invalid

It is not though. I specify 2 for that value which means non-local and like
I said, this exact code works in VB Script on the production system and in
SQL on the test system. Maybe this is some kind of permissions problem?



Relevant Pages

  • RE: Fulltext failure on a 2 node cluster
    ... Server full-text search resource online: "SQL Cluster Resource 'Full Text' ...
    (microsoft.public.sqlserver.clustering)
  • Re: HELP PLEASE ~ ???
    ... You mentioned that it went ahead and added a SQL ... SQL Server 2000 database for all my data. ... find the connectionString in the newly recreated SQLExpress database. ... The connection string specifies a local Sql Server Express instance ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multi-Channel Raid VS SAN Storage
    ... A 5~6 years old server is a very old server. ... As I mentioned, the server is one node in a cluster environment, and SQL is ... We actually are running RAID 1+0 and our aplication is definately more ... needs it's own SAN device, or at least a dedicated IO channel on the SAN. ...
    (microsoft.public.sqlserver.setup)
  • RE: How do I get back to base SQL server on my SBS 2003 server?
    ... After you uninstall SQL 2005, the instance which you upgraded will not go ... Uninstall and then reinstall ISA server. ... Uninstall and then reinstall the Monitoring component. ... Tools to Maintenance, change Monitoring component to Install, and then ...
    (microsoft.public.windows.server.sbs)
  • Re: Multi-Channel Raid VS SAN Storage
    ... A 5~6 years old server is a very old server. ... As I mentioned, the server is one node in a cluster environment, and SQL is ... We actually are running RAID 1+0 and our aplication is definately more ... needs it's own SAN device, or at least a dedicated IO channel on the SAN. ...
    (microsoft.public.sqlserver.setup)