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.
The class Loader contains the following methods:
$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');