Why use ETL

Look at the MS SQL Server code below and think what it will return

declare @x varchar(10)
set @X='1245-XMCD-GTH'
select Right(substring(@X,charindex('-',@X)+1,charindex('-',@X,charindex('-',@X)+1)-charindex('-',@X)-1),2)

There result is the last two characters of a middle part -‘CD’

Now answer those three questions

  • How long did it take you to figure out the result?
  • What is the chance of writing the wrong code or getting an error?
  • Can you apply the same function to a text file, Oracle table or in fact any table?

Now let’s do the same using Advanced ETL Processor

We would need two transformation functions Splitter and Right

Splitter creates several fields from one using Delimiter and Text Qualifier. In our Example we have no Qualifier and delimiter is '-'

Right transformation function returns N characters of the right part of the string

In our example, we set N to 2.


Next step is to connect objects

  • Source field [REGISTRATION NUMBER] to splitter
  • Splitter to Right
  • Right to target field [FIELD1]

One of the major benefits of using Advanced ETL Processor that you can see how the data will look like once it is loaded without actually loading it. All we need to do is to press "Magic Button"

Result of transformation

 As you can see Advanced ETL Processor makes it easy to understand what is happening to the data during transformation.

Advanced ETL Processor is designed to automate extracting data from ANY database, transform, validate it and load into ANY database. Typical usage of it would be extract data from Excel File, Validate Date Formats, Sort data, de-duplicate it and load it into the database, run stored procedure or SQL script, once loading is completed. Unlike Oracle SQL loader, BCP, DTS or SSIS Advanced ETL Processor can also add new and update old records based on primary key.

Download Free Trial Learn More About Our ETL Software

We have 116 guests and no members online