Background documentationLoader Class (loader Module) Locate this document in the navigation structure

 

Loader is a class of SAP::DBTech::loader module. 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.

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

Using the Constructor

Syntax Syntax

  1. $session = new Loader ($database_computer);
End of the code.

Parameters

Description

$database_computer

Network name of the computer that is to be connected.

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

Example

You generate a connection $session to the program Loader server on the local computer:

$session = new Loader ();

You generate a connection $session to the program Loader server on the remote_computer computer:

$session =new Loader ('remote_computer');