Entering content frame

Background documentation Class Loader Locate the document in the library structure

Use

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

An instance of the loader class corresponds to a connection to a Loader server.

However, this does not connect the Loader server to the database instance.

To connect the Loader server to the database, execute the Loader commands Structure linkUSE DB and Structure linkUSE USER.

Class Content

The Loader class contains the following methods:

cmd (cmd_string)

rawCmd (cmd_string)

sql (cmd_string)

release ()

Using the Constructor

$session = new Loader ($database_computer);

Parameter

Description

database_computer

Network name of the computer to which you want to connect.

If you do not specify a database_computer, a connection is made to the local computer.

Example

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

$session = new Loader ();

 

Generating a connection session to the program Loader server on the computer remote_computer:

$session =new Loader ('remote_computer');

 

Leaving content frame