SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Value dependent on Email sent


Value dependent on Email sent

Author
Message
iarnahsiv
iarnahsiv
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 101
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
Sushil Dwivedi
Sushil Dwivedi
SSC Journeyman
SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)

Group: General Forum Members
Points: 87 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
aaron.reese
aaron.reese
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1047 Visits: 902
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search