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

Data functions

In your scripts, you can set and retrieve the value of any other columns of the same row using the data functions. Setting and retrieving the values by index is faster as the scripting engine does not need to search for the source column. Column indexes are zero based i.e. the first column has the index value 0.
 
function GetSourceColumnValue(ColumnName: string): Variant;  
Returns the ColumnName value of the current row. Returns varNull if ColumnName does not exist.  
 
function GetSourceColumnValueByIndex(ColumnIndex: Integer): Variant;  
Returns the ColumnIndex value of the current row. Returns varNull if ColumnIndex is out of range.  
 
function SetSourceColumnValue(ColumnName: string; Value: Variant): Boolean;  
Sets the ColumnName value of the current row to Value. Returns False if ColumnName does not exist.  
 
function SetSourceColumnValueByIndex(ColumnIndex: Integer; Value: Variant): Boolean;  
Sets the ColumnIndex value of the current row to Value. Returns False if ColumnIndex is out of range.