Creating and Populating Tables in Talend Open Studio

Posted on by By admin, in Talend | 0

Creating and Populating tables without using the dynamic schema in Talend Open Studio

Creating tables from one database to another database without using dynamic schema concept. Creation of tables and insertion of data needs to happen in one Job itself. There is a tSetDynamicSchema component in Talend Enterprise Edition but this component is not available in Open Studio.

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Get your 30 Days Trail Version

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Grab The 30 Days Free Trail

So the other method to use dynamic schema is as follows:

Create 3 delimited Files

  1. File Containing table names to be created
  2. For example:
    TableName
    Emp
    Dept
    Sal
    And so on

  3. File containing create scripts
  4. For example:
    TableName;Create
    Emp;create table Emp……
    Dept;…..

  5. File containing insert scripts
  6. For example:
    TableName;insert
    Emp;insert script ….
    Dept;…….

Steps to create a job:

  1. In Repository Right Click on the Job Design and create a job
  2. Create three delimited files
  3. creating 3 delimited files

  4. Drop Three delimited files from Repository, three tFlowToIterate and three tDBRow components from a palette on to the workspace.
  5. And provide the link from one component to another below as diagram.
  6. (Note: Right Click on tFlowToIterate and give a link as “Iterate”)

    one component to another

  7. Provide the required connection details either Repository or Built-in in tDBRow component. And provide the global variables by pressing CTRL+SPACE in place of Table name in the component settings as follows:
  8. tDBRow :drop

    Drop Script

    tDBRow:create


    tDBRow:Insert

    insert script

  9. Run the Job(Execution)
  10. Then check the output in the given DB connection
logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

In Case if you have any queries please get us at support@helicaltech.com

Thanks
Vijaya
Helical IT Solutions Pvt Ltd

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments