Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS Logic


SSIS Logic

Author
Message
komal145
komal145
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 896
SSIS Package:
1) I am trying to get the value from a look up table into a @intial variable : example say "A" is need to be assigned to @intial
and since value "B" is added today recntly , this needs to go into varialble @max ='B'

look up TABLE:

DATE flag
7/22/2013 B ---@max
7/21/2013 A --@intial

2)After getting this value into variable , pass the value 'B' to the Stored Procedure " to run it once"

3) If there is one more value "C" is added to look up table tommorow then I need to pass
value 'B' to @intial varaible and value'C' to @max variable.

Now the Stored procedure needs to run twice , once for the value'B' and once for value'C' tommorrow.


DATE flag
7/23/2013 C ---@max
7/22/2013 B --@intial

On 7/24/2013 There is no new value added to lookup table , so the max value is 'C' , so stored procedure runs for only 'C' value passed.


How can I do this in SSIS?

Thanks,
Komal
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16463 Visits: 13207
I see no reason to do this in SSIS.
SSIS will not "remember" the values you stored in the variables. It only maintains the values of variables during runtime. You'd still have to persist the values in a table.

I would implement your logic in TSQL, probably will be a lot easier.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
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