Entering content frame

Process documentation Exporting and Importing Data with Java Locate the document in the library structure

Purpose

You can use the Loader program to control the way you export and import data with Java programs. For this purpose, the Java package com.sap.dbtech.powertoys provides you with the Java class com.sap.dbtech.powertoys.Loader. This Java package is included in the software of the JDBC driver.

Process Flow

...

       1.      Connecting to the Loader with Java  

       2.      Executing Loader Commands with Java

As a result, you get the return codes of the Loader commands and SQL statements. The return values of the commands and statements are available as a Java variable that you can easily edit and format.  In error situations, exceptions are generated, which you can catch and handle (see Error Handling for Loader Errors ).

       3.      Ending the Connection to the Loader

Example

Example for Creating a Table with Java

See also:

Loader documentation

 

Leaving content frame