May 20, 2020 at 3:47 pm
Hello, guys!
I created a SSIS package in Visual Studio Community 2019:
Everything is working fine, but I don't know how to pass the data from "Commutations" (SQL Task) to "Net Present Value" (Script Task).
Basically, "Commutations" generates a result set that I'm passing to a SSIS object variable. This result set has a couple of columns that I'd like to pass to a C# array of doubles in the script task, each column corresponds to a different array.
Below I'm just illustrating an idea. I know it's not correct.
double[] firstColumn = double[] { Dts.Variables["CommutationsFirstColumn"].Value }
Why do I need that?
"Commutations" has a probability stored for each age from 0 to 120. Each person needs the value of each column in "Commutations" corresponding to their age, so I'm trying to do the following as soon as a get the result set into an array:
double probability1 = firstColumn [age];
That's the idea that I'm having trouble to implement.
Any help would be very appreciated.
Thank you, guys
May 21, 2020 at 4:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
May 26, 2020 at 1:28 pm
Well, I can get you part of the way, I think.
Also, you'll want to wire your Commutations Execute SQL Task into the flow, it's not wired in right now so it'll execute in parallel, and you won't be guaranteed that it'll be done and ready by the time the rest of your stuff runs. I'd wire that in before the "People Data" task, so it runs like Commutations -> People Data -> For Each Person
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply