Skip to main content

Talend ETL Part 1: SQL Server Database to Excel Sheet


Hello All,

Of many ETL tools available in Market, One of the strong tool is Talend. Difference between other ETL tools and tools like Pentaho, Talend, Clover ETL, Adeptia Integration etc, is that they support NO SQL Cross domains, BIG Data, Hadoop etc.

Other ETL tools like, SSIS, Informatica are now coming with their higher versions, which consists of Hadoop Integration.

Basically We can say, there are two databases types.
1) RDBMS (Example: SQL Server, MySQL, Oracle etc)
2) Non RDBMS (Example: MongoDB, InfiniDB etc)

Talend Supports Non RDBMS databases.

Here I would like to share my hands on experience on Talend and how to use it and explain basic components of Talend.

Approx there are 500 components we can find in Talend.

So lets Kick Start from Basics. First lets try to load Data from Microsoft SQL Server to Excel.

Steps:

Step1: Open Talend Studio.



Step 2: Right click on Job Design and Create a new Job by giving some job name.



Step 3: Give the name of Job and click Finish.



Step 4: To connect to Database, Click on DB Connections and Create New connections.




Step 5: Next, give the New Database Connection Name and then click Next.




Step 6: Select Database Type you want to connect using Drop Down button.



Step 7: I have already created a ODBC Driver of MSSQL so I am using the same. You may can take OLEDB connection also. Give the connection details and Check whether connection got established  and then give finish. 




Step 8: Now Under MetaData, We can see the a DB Connection been created under the name Twitter_Data. Now right Click on DB Connection and click On Retrieve Schema.





Step 9: This window pops out, and  Give Next.




Step 10: Now under the database, Expand it and Select the Schema in which your Table exists and under Schema, Select the Table which is required.





Step 11: 




Step 12: After giving finish, we can see the Schema is Created Under MetaData. Now we can drag and drop this component on the Designer Page.




Step 13: Now drag and Drop the Employee Schema onto the Designer. When we drag and drop it, this following window will pops out. Click tDBInput.





Step 14: 




Step 15:   Now  on Palette on Right hand side, Select Files and Select Output.




Step 16:  Now under Files>Output, Select tFileOutputExcel component and Drag and Drop it on Designer Window.





Step 17: After Drag and Drop, Now right Click on EMPLOYEE Component on Designer Mode and Select Row>Main. This will produce a thread/Line which is used to connect the components. Now drag thread and place it over TFileOutputExcel.




Step 18: 


Step 19: Now to configure tFileOutputExcel, Click on the component once and Under Component Properties below (As Shown), Fill the areas which are highlighted which gives details like Path of the Excel Destination File, header Details etc.





Step 20: Now its all done. Now we are ready to run the package. To run the Job, We can Select Run Tab below and can use Run Button to run full Component under Basic Run.





Step 21:  Else to Debug and watch each row by row, We can select DeBug Run under RUN tab and Can run the package.






Comments

  1. Yes I agree with you on One of the strong etl tool is Talend.thank you for explaining the difference between etl tools and other.This post give me knowledge to do more in my Talend ETL online Training in Hyderabad.

    ReplyDelete
  2. This post is much helpful for us.Excellent Blog! This is very helpful for who wants to learn professional Education. Please keep Going. These concept is a good way to enhance the knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got a good knowledge.
    Talend Tutorial

    ReplyDelete
  3. The information you provided in this Blog is very useful. The information is worth and very useful for the beginners. I like your way of writing and explaining the topics. If You Want More Details About Talend Click here.

    ReplyDelete
  4. Thank you for the useful information. Share more updates.
    Learn Cognos Online
    cognos online training

    ReplyDelete
  5. Nice blog, very informative content.Thanks for sharing, waiting for the next update…
    Hibernate Training in Chennai
    Spring and Hibernate Training in Chennai

    ReplyDelete
  6. Article, its very informative content..thanks for sharing...Waiting for the next update…
    What is Manual Testing
    Top 5 Manual Testing Tools

    ReplyDelete
  7. Great blog. Thanks for sharing such a useful information. Share more.
    Pytest Online Course
    Pytest Online Training

    ReplyDelete

Post a Comment

Popular posts from this blog

BIG Data, Hadoop – Chapter 2 - Data Life Cycle

Data Life Cycle The data life cycle is pictorial defined as show below:     As we see, in our current system, we capture/ Extract our data, then we store it and later we process for reporting and analytics. But in case of big data, the problem lies in storing and then processing it faster. Hence Hadoop takes this portion, where it stores the data in effective format (Hadoop distributed File System) and also process using its engine (Map Reduce Engine). Since Map Reduce engine or Hadoop engine need data on HDFS format to process, We have favorable tools available in market to do this operation. As an example, Scoop is a tool which converts RDBMS to HDFS. Likewise we have SAP BOD to convert sap system data to HDFS.

SSIS: The Value Was Too Large To Fit In The Output Column

I had a SSIS package where I was calling a stored procedure in OLEDB Source and it was returning a “The Value Was Too Large to Fit in the Output Column” error. Well, My Datatype in OLEDB source was matching with my OLEDB Destination table. However, when I googled, we got solutions like to increase the output of OLEDB Source using Advanced Editor option . I was not at all comfortable with their solution as my source, destination and my intermediate transformation all are having same length and data type and I don’t want to change. Then I found that I was missing SET NOCOUNT ON option was missing in Stored Procedure. Once I added it, my data flow task ran successfully. 

How to Copy or Move Multiple Files from One Folder to Another Folder using Talend

Hello all, In this Post, I will explain how to move Multiple Files from One Folder (Say Source) to Other folder (Say Destination). This Post will also helps you to understand How to Declare Variable and Use it. To Declare a variable, We are go to use Contexts option in repository. Lets say we have two .txt files in Path D:/Source/ . My Requirement is to move the files from Source Folder ( D:/Source/ ) to Destination Folder ( D:/Dest/ ). Step 1: Open a New job Step 2: Now right click and Create a New Contexts from Repository. Give some Name and give Next. Step 3: Now Fill in the Source Directory Details where the loop on files should happen as shown in the snippet and give finish. Step 4: Now Context is created and The values will be changing based on each file in Folder. Step 5: Click and Drag the context from Repository to Context Job Window below the Job Designer. Step 6: If we Expand the Contexts, We can find the variable SourcePath is holdi...