Connect

This method connects to the batch root.

Syntax

Connect(BatchRootPath as String, ImageRootPath as String, UserName as String Password as String, ModuleType as String)

Parameters

Parameter Description
BatchRootPath Batch Root Path

If ActivateSupport is True, the parameter can be an empty string.

ImageRootPath Image Root Path

If ActivateSupport is True, the parameter can be an empty string.

UserName The user that can connect to the database job.

In most cases it is applicable to use the special name "LOGIN_AS_CURRENT" in order to reuse the current connection to the database.

Password Password

If UserName = LOGIN_AS_CURRENT, the password can be an empty string.

ModuleType Type of the module connecting

Sample code

Dim pBatchRoot as New SCBCdrBATCHLib.SCBCdrBatchRoot
…
pBatchRoot.Connect("Job name", "", "LOGIN_AS_CURRENT", "", "Module type name")