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


Heeeelp !!!!!!!!!!!! SSIS Incremental loading.


Heeeelp !!!!!!!!!!!! SSIS Incremental loading.

Author
Message
Lidou123
Lidou123
SSC-Addicted
SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)

Group: General Forum Members
Points: 497 Visits: 380
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.
Daniel Bowlin
Daniel Bowlin
SSCrazy Eights
SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)

Group: General Forum Members
Points: 8114 Visits: 2629
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.
Lidou123
Lidou123
SSC-Addicted
SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)

Group: General Forum Members
Points: 497 Visits: 380
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.
Lidou123
Lidou123
SSC-Addicted
SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)

Group: General Forum Members
Points: 497 Visits: 380
Hi Daniel,

My question seems to be stupid but I am a newbie in SSIS. Sad
With your solution, how can I do a package configuration with variable ???
Daniel Bowlin
Daniel Bowlin
SSCrazy Eights
SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)SSCrazy Eights (8.1K reputation)

Group: General Forum Members
Points: 8114 Visits: 2629
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.
Lidou123
Lidou123
SSC-Addicted
SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)SSC-Addicted (497 reputation)

Group: General Forum Members
Points: 497 Visits: 380
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 ??
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