Home
SQL File Import online help Prev Page Prev Page
Introduction
About SQL File Import
Version history
Contact us
Supported database engines
Using SQL File Import
Home page
Task Wizard
Select source data
Files as source data
CSV source data files
Excel source data files
Enter file search patterns
Connect to database
Conecting to databases directly without client libraries installed
Connecting to an Oracle database
Database scripts
Select table to upload into
Map data to table columns
Review script results
Transaction options
Logging options
Finalise
Run task
Scheduling a task
Options
Scripting
Global variables
OnBeforeUpload function
OnAfterUpload function
Support functions
Data functions
Log functions
String functions
Date and time functions
Date-Time format strings
File functions

Map data to table columns

On the page, link the source columns to the table columns. SQL File Import will then upload the values of the source columns into the selected table's columns. You link the columns by first clicking on the source column, and then clicking on one of the target columns. Linked columns are displayed in green. Unlinked columns are displayed in gray.

wizard_mapping_01  

To remove a link, click on the Unmap item
button.

wizard_mapping_unmap01  

To remove all mappings, click on the Unmap all items
button.

wizard_mapping_unmapall01  

If the order in which the scripts are ran is important, you can reorder the target columns by clicking on the Move target column up
or Move target column down buttons, when a target column is selected.

wizard_mapping_move01  

If you are uploading files from a folder, you can add additional source columns by clicking on the Add source item
button.

wizard_mapping_addsource01  

You can also delete a source item by clicking on the Delete source item
button.

wizard_mapping_deletesource01  
 
If you are uploading data from a CSV or Excel file, you can also use the Map Columns button to try to automatically map columns with similar names.

wizard_mapping_mapcolumns01_b  

For each linked column, you can apply transformations using scripts on the input value. To edit the scripts, click on the transformation item. The bottom half of the page will display the Scripts
tab.

wizard_mapping_scripts01  

You can enter a description for the transformation to make it clear what action it is performing. For each column, you can enter a script prior to the import, on the OnBeforeUpload
tab, and a script after the import, on the OnAfterUpload tab.

wizard_mapping_scripts02  

See this section on Scripting for further details on the scripting language.