Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Value dependent on Email sent Expand / Collapse
Author
Message
Posted Thursday, February 27, 2014 4:17 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 3:43 PM
Points: 2, Visits: 36
Hello there,
I am a newbie to SSIS and was hoping someone could help me with an issue that I am working on. We currently use vb script to send out emails. Now we are moving towards SSIS in taking over that procedure. The steps include

1)Execute SQL Script - pulls a list of emails from table
2)Inside a ForEachLoop container, Task Factory Advance Email and SMS Task sends out the emails
3)Update table for each email if email was successful or failed.

I am not familiar with the mechanics, but which SSIS component(s) will help me get the information that the email sent was successful or not? Then I can use that information/value and apply it on TSQL to update the values on the table.

Hope that makes sense

Thank You
Post #1546165
Posted Tuesday, March 4, 2014 3:02 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, May 21, 2014 4:09 AM
Points: 37, Visits: 142
You can use package variable and that variable value you can use to update your table according to you email sent or not
Post #1547215
Posted Thursday, March 13, 2014 7:55 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, July 21, 2014 4:26 PM
Points: 386, Visits: 622
run the SQL script in a Data FlowTask and output the results to a variable of type: Object, coped at package level.

Set up a For Each Task that enumerates the object variable into a second variable which holds the email address.

Within the FEL put your factory and use the emailaddress variable in expressions where needed.

Join the original DFT to the FEL and you are good to go.
Post #1550713
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse