Re: Microsoft VBScript runtime error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Calvin (Calvin_at_discussions.microsoft.com)
Date: 11/02/04


Date: Tue, 2 Nov 2004 00:48:02 -0800

1. Had registered the dll file, but It's still failed to work.
2. Sorry, I use CDO on W2k3 server instead of CDONTS
3. I don't want to create user profile, and install a outlook client to
support MAPI application. My objective is just want to use a simple way to
trigger a email alert to SQL administrator when the scheduled job failed.

"Ray Costanzo [MVP]" wrote:

> 1. Try reregistering CDONTS.dll (At the command prompt [cmd.exe], enter:
> regsvr32 %windir%\system32\cdonts.dll
> )
>
> 2. This shouldn't be expected to work on a W2K3 server, unless you have
> manually copied a CDONTS.dll file from an NT or 2000 machine and registered
> it.
>
> 3. The SQL Agent is capable of sending e-mail alerts on job failures by
> design in SQL Server. Any particular reason you're not using that
> functionality?
>
> Ray at home
>
>
>
> "Calvin" <Calvin@discussions.microsoft.com> wrote in message
> news:790046DB-1FA3-4CAE-9086-FB979408DCD1@microsoft.com...
> > Hi,
> > The error message windows prompted
> > "Error: ActiveX component can't create object: 'CDONTS.NewMail';
> > Code: 800A01AD;
> > Source: Ms VBScript runtime error"
> > when I run the script below on certain windows NT servers with IIS and
> > SMTP
> > services running.
> > -------------------------------------------------------------
> > Set objNewMail = CreateObject("CDONTS.NewMail")
> > objNewMail.From = "xxxx@xxxx.com"
> > objNewMail.To = "xxxx@xxxx.com"
> > objNewMail.Subject = "subject"
> > objNewMail.Body = "testing ..."
> > Set objNewMail = Nothing
> > -------------------------------------------------------------
> > Some other NT/W2K/W2k3 servers have no problem to run this script at all !
> > Any experts can advise what is the actual cause ? I need to use the script
> > to
> > send email alert when backup job failed on SQL server. Thanks.
>
>
>



Relevant Pages

  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)
  • Re: Memory issues with 64-bit SQL Server 2005 on 64-bit Win 2003 C
    ... I also checked the individual patch levels for the .NET drivers, SQL Server ... The SQL Server is fully patched, however Windows Update reported that the OS ... Lock pages in memory -- I guess you might have taken care of it as well. ...
    (microsoft.public.sqlserver.clustering)
  • RE: migrating from wmsde to sql server
    ... Click Start, point to All Programs\Microsoft SQL Server, and then click ... then click New SQL Server Registration. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)
  • Re: Best replication architecture?
    ... Looking for a SQL Server replication book? ... So if it is subscribing to Publisher 1, ...
    (microsoft.public.sqlserver.replication)