Migrating from DatabaseSelect to tDBInput with multiple inputs
Update your Job and multi-input map to replace the deprecated
DatabaseSelect function with tDBInput
components.
Before you begin
- You have a Job containing a tHMap with multiple inputs that use DatabaseSelect functions.
- You have created a connection to your database in Talend Studio. For more information, see Setting up a database connection. Make sure that the schema is identical to the structure used in your map.
About this task
In this example, you have a simple Job with a tHMap that
selects data from two database tables containing company information, and maps it to
an XML structure. Then, a tFileOutputRaw writes the result to
an XML file. The Job looks like this:
The map used in the tHMap looks like this:
The goal of this example is to remove the deprecated DatabaseSelect function and keep the same behavior for the Job.
Procedure
Results
Information noteTip: You may need to close and reopen your Job to remove the error icon on
the tHMap.