Showing posts with label destination. Show all posts
Showing posts with label destination. Show all posts

Tuesday, March 27, 2012

ForEach Loop or For Loop?

I have source and destination table names in the database(one table) and I need to read the source and destination tables one by one...

My Lookp table is like the following...

Srn srctable desttable

1 SRC1 DEST1

2 SRC2 DEST2

3 SRC3 DEST3

Now I want one package to load from source to destination.. how do I do it.. I dont know how to use....

How do I run the pacakge for each of the rows... ..............................

Is the metadata the same for each data transfer? If not then you're going to have to build as many data-flows as there are rows in your lookup table and if that is teh case - what's the point in looping over them?

-Jamie

Foreach Loop and Package Configuration

I am trying to build a package that moves data from one server to another. My plan is to make the package dynamic in that the source and destination connection and sql statements are strored in the package configuration.

Is it possible to have a foreach container loop through each configuration?

Thanks,
Russ Jester

And do what? Why do you want to loop through a configuration (I presume you mean a configuration file)?

-Jamie|||I wanted to set configuration items and store them in a configuration database. Idaally I would like to loop through each configuration item to load data from source tables to my target.

I saw this as a way to build a package that would load data based on the source table, source sql, and target table pulled from the configuration. Instead of having to create a package for each table.

Am I not understanding the purpose of the package configuration?