Using Variables In Transformation

More
3 years 1 month ago #22733 by hanisultan
Would it be possible to use a variable to select these fields in a data reader property? see attached 
I have several replicas of the same database same schema and the built a transformation to a staging database.  I will be performing the same exact transformation on each so instead of building, lets say I have 7 copies, I build one and in a package, I just pass data reader variables to select the server, the database, and loop through all copies and extract the data? If you need me to draw a diagram I could if my explanation  isn't clear enough.  Thank you 
Attachments:
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
3 years 4 weeks ago - 1 year 1 month ago #22762 by Peter.Jonson
Sorry, we missed this question.

The recommended approach would be to use global variables.

Here is a very basic example

www.etl-tools.com/wiki/knowledgebase/tip...lopment-environment/

Global variables are used when you design the transformations so you can actually see the data and test the transformations

Then within the package you overwrite the global variable value using "Set variable" package action

www.etl-tools.com/wiki/advanced-etl-proc...et-variables-action/

It is also possible to store list of values in the database and loop over it

Peter Jonson
ETL Developer
Last edit: 1 year 1 month ago by admin.

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save