Entering content frame

 Connecting to the Loader with Java 

Use

To load and unload data with Java, first call the Loader Server program. To connect to the database, you then also need to execute the Loader commands USE SERVERDB and USE USER.

You can also call the Loader Server program on a remote computer. When you call the constructor Loader (<loader_server_name>), the Loader Server program is started on the remote computer.
If you specify file names in the Loader commands while connected to this remote computer, then these file names refer to the file system of this computer.

Finally, you can send Loader commands and SQL statements of your choice to the Loader.

Syntax

import com.sap.dbtech.powertoys.*;

<lvalue> = new Loader ();

<lvalue> = new Loader (<loader_server_name>);

Parameter

Description

lvalue

Expression of the class Loader (such as a variable) to which a value can be assigned

loader_server_name

Name of the computer on which you want to call the Loader Server program

 

See also:

Example for Creating a Table with Java

 

Leaving content frame