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

Heeeelp !!!!!!!!!!!! SSIS Incremental loading. Expand / Collapse
Author
Message
Posted Sunday, November 25, 2012 9:23 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 12:13 PM
Points: 69, Visits: 289
Hi All,

Excuse me for my bad english.
I am newbie in SSIS.
I need your help.
Configuration: sql server 2008R2.
I have ssis package that calculates indicators for the week (group by week).
We would like to automate the loading that package load every week data for the last six weeks.
But we would also be able to in a table (parameters table may be ???) force dates for which you would like to load ( for the first loading for instance).

Can you tell me how???

Thank you.
Post #1388408
Posted Monday, November 26, 2012 7:11 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 2:36 PM
Points: 2,818, Visits: 2,565
From the looks of things you have some kind of date value to load data for a week. In your query, rather than use a fixed date parameter like DATEADD(dd,-7,GetDate()), use a variable, probably something like DATEADD(dd,-?,GetDate()). Put the variable in a package configuration. Then when you need to run the job for a different date range you simply change the configuration value and run your package. No need to modify your package.
Post #1388608
Posted Monday, November 26, 2012 10:06 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 12:13 PM
Points: 69, Visits: 289
Hi Daniel,
Thank you for your answer.
1 - But users who load data are not familiar with SSIS. It’s impossible for them to change the values of a variable in an SSIS package
2 - They asked in an automated package the loading of data for the last 6 weeks but They want to have in a table the possibility to force these dates if necessary (for example if the first load for which all chargerait the year 2012 ).

I thought the solution might be to have a table of parameters that would list every week with a column that will tell us what a week load.

What do you think?

I am waiting your answer.
Post #1388705
Posted Monday, November 26, 2012 12:21 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 12:13 PM
Points: 69, Visits: 289
Hi Daniel,

My question seems to be stupid but I am a newbie in SSIS.
With your solution, how can I do a package configuration with variable ???
Post #1388780
Posted Monday, November 26, 2012 1:01 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 2:36 PM
Points: 2,818, Visits: 2,565
There are a number of good tutorials online about creating package configurations. I would suggest using a database, because then you could create a small application or another package where the users could manipulate the amount of time to go back. The one thing to watch here is that you don't want more than one user running the package while another user is trying to run the package with a different value in the parameter.
Post #1388801
Posted Monday, November 26, 2012 1:39 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 12:13 PM
Points: 69, Visits: 289
OK. Thanks.
For you, I must create a table with parameters inside.
And another package that will load this table with dates that users want ??
Post #1388825
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse