Procedure

DB Generic

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Open Studio for MDM
Talend Open Studio for ESB
Talend Big Data
Talend Real-Time Big Data Platform
Talend Data Integration
Talend MDM Platform
Talend Open Studio for Big Data
Talend Big Data Platform
Talend Open Studio for Data Integration
Talend Data Services Platform
Talend Data Management Platform
Talend Data Fabric
Talend ESB
task
Data Governance > Third-party systems > Database components > DB Generic components
Data Quality and Preparation > Third-party systems > Database components > DB Generic components
Design and Development > Third-party systems > Database components > DB Generic components
EnrichPlatform
Talend Studio

Procedure

  1. Drop a tDBInput and tLogRow component from the Palette to the design workspace.
  2. Connect the components using Row > Main link.
  3. Double-click tDBInput to open its Basic settings view in the Component tab.
  4. Fill in the database name, the username and password in the corresponding fields.
  5. Click Edit Schema and create a 2-column description including shop code and sales.
  6. Enter the table name in the corresponding field.
  7. Type in the query making sure it includes all columns in the same order as defined in the Schema. In this case, as we'll select all columns of the schema, the asterisk symbol makes sense.
  8. Click on the second component to define it.
  9. Enter the fields separator. In this case, a pipe separator.
  10. Now go to the Run tab, and click on Run to execute the Job.
    The DB is parsed and queried data is extracted from the specified table and passed on to the job log console. You can view the output file straight on the console.
    For an example of the use of Dynamic Schemas in Input components, see Scenario 5: Writing dynamic columns from a database to an output file.