Entering content frame

 Class Loader 

Use

Loader is a class of the module SAP::DBTech::loader. All file names in the Loader commands must be specified for the server on which the Loader Server was started.

A single instance of the class Loader corresponds to one connection to a Loader Server.

However, this does not connect the Loader Server to the database.

To connect the Loader Server to the database, execute the Loader commands USE SERVERDB and USE USER.

Class Content

The class Loader contains the following methods:

cmd (cmd_string)

rawCmd (cmd_string)

sql (cmd_string)

release ()

Using the Constructor

$session = new Loader ($database_server);

Parameter

Description

database_server

Network name of the server to which you want to connect

If you do not specify a database_server, a connection is made to the local server.

Generating a connection session to the program Loader Server on the current server:

$session = new Loader ();

 

Generating a connection session to the program Loader Server on the server remoteserver:

$session =new Loader ('remoteserver');

 

Leaving content frame