Migrating from DatabaseSelect to a single tDBInput
Update your Job and map to replace the deprecated DatabaseSelect
function with a tDBInput component.
Before you begin
- You have a Job containing a tHMap that uses a DatabaseSelect function.
- 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 a database containing employee information and maps it to an XML
structure, and a tFileOutputRaw that 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.