dbTalk Databases Forums  

Sending Email from a job with ActiveX

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Sending Email from a job with ActiveX in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
james rimell
 
Posts: n/a

Default Sending Email from a job with ActiveX - 02-21-2005 , 07:41 AM






I am creating a Job using the SQLDMO interface, if the job fails I want it
to email someone with an appropriate error message.

On some servers this works fine and on others it doesn't, it all seems to
depend on the mail profile settings. The wierd thing is that an activeX
script that doesn't work from within a job will work straight from a DTS
package

can anyone tell me if there is any way that I can set up the email to work
everytime or set up the server to use the same email settings for Packages
and Jobs

thanks

JR



Reply With Quote
  #2  
Old   
Gert E.R. Drapers
 
Posts: n/a

Default Re: Sending Email from a job with ActiveX - 02-21-2005 , 09:56 AM






Probably because the security context of the job is different from the
interactive user.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"james rimell" <jim> wrote

Quote:
I am creating a Job using the SQLDMO interface, if the job fails I want it
to email someone with an appropriate error message.

On some servers this works fine and on others it doesn't, it all seems to
depend on the mail profile settings. The wierd thing is that an activeX
script that doesn't work from within a job will work straight from a DTS
package

can anyone tell me if there is any way that I can set up the email to work
everytime or set up the server to use the same email settings for Packages
and Jobs

thanks

JR




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.