Migrating from DatabaseInsert to a single tDBOutput
Update your Job and map to replace the deprecated
DatabaseInsert function with a
tDBOutput component.
You can follow the same steps
to replace the DatabaseUpdate function.
Before you begin
- You have a Job containing a tHMap that uses a DatabaseInsert 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 tFileInputRaw
that reads an XML file containing employee information, and a
tHMap that maps the XML data to a database table. The Job looks like this:
The map used in the tHMap looks like this:
The goal of this example is to remove the deprecated DatabaseInsert 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.