2

I have a ForEach loop for importing all available tables in source connection. I am using following user variables for this:

  • OracleTables of type System.Object for holding all tables from oracle DB
  • TableName for enumerating OracleTables of type String
  • set of Boolean variables (e.g. Enable_TABLENAME) one for each table to hold whether that table is to be imported or not.

Now, I want to configure the DataFlow task inside ForEach loop to run iff the value of corresponsing table variable if true. Basically, I want something like:

!@[User::Enable_@[User::TableName]] for Disable property of DataFlow task.

that is, I want to get the Boolean table variable for for current table held by TableName variable.

How can I achive this? Or else, is there any better way to do this? Any pointers would be really helpful.

1

1 Answer 1

2

You can use ForEach Item Ennumerator (you can define your Items in the editor itself) or NodeList Ennumerator (and have your values in an XML file) or ADO.Net Ennumerator ( have your values coming from a SQL table instead).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.