Insert / Update DB
Last updated
Last updated
Steel Wheels needs to update its Employee records as folks join and get promoted.
In this guided Lab, you will:
• Insert / Update the Employees Table.
1188,Firrelli,Julianne,x2174,jfirrelli@classicmodelcars.com,2,1143,Sales Manager 1619,King,Tom,x6324,tking@classicmodelcars.com,6,1088,Sales Rep 1810,Lundberg,Anna,x910,alundberg@classicmodelcars.com,2,1143,Sales Rep 1811,Schulz,Chris,x951,cschulz@classicmodelcars.com,2,1143,Sales Rep
In Spoon, click File > New > Transformation.
Any one of these actions opens a new Transformation tab for you to begin designing your transformation.
By clicking New, then Transformation
By using the CTRL-N hot key
The Text File Input step is used to read data from a variety of different text-file types. The most commonly used formats include Comma Separated Values (CSV files) generated by spreadsheets and fixed width flat files.
The Text File Input step provides you with the ability to specify a list of files to read, or a list of directories with wild cards in the form of regular expressions. In addition, you can accept filenames from a previous step making filename handling more even more generic.
Drag the Text File Input step onto the canvas.
Open the Text File properties dialog box.
Ensure the following details are configured, as outlined below:
Because the sample file is located in the same directory where the transformation resides, a good approach to naming the file in a way that is location independent is to use a system variable to parameterize the directory name where the file is located. In our case, the complete filename is:
${Internal.Transformation.Filename.Directory}/employees_insert_update.txt
Click on the ‘Content’ tab and configure the following properties:
Click on ‘Get Fields’ button.
Click on the ‘Fields’ tab and notice the following properties:
Close the step.