Use the setTableName() method to specify the table to load the data. Then, use the load() method, specifying the CSV file. For example, to load data from a file named tmp.csv into a table named GBMAXTABLE, you would specify:
For the Salesforce driver, you also can specify the columns to which you want to load the data. This example loads the first column in the CSV file to the ColName1 column, the second column in the CSV file to the ColName2 column, and the third column in the CSV file to the ColName3 column:
Use the BulkLoadBatchSize property to specify the number of rows the driver loads at a time when bulk loading data. Performance can be improved by increasing the number of rows the driver loads at a time because fewer network round trips are required. Be aware that increasing the number of rows that are loaded also causes the driver to consume more memory on the client. Refer to
JDBC Extensions in the
DataDirect Connect Series for JDBC Reference for more information about bulk load methods.