Attaching to a Service Manager
From InterBase
To initiate a connection from your application to an InterBase service manager:
- 1. Place a service component on a form.
- 2. Set the
ServerName
property for that component to the name of the server on which the services are to be run. - 3. Use the
Protocol
property to set the network protocol with which to connect to the server. - 4. Set the
Active
property to <True>. A login dialog is displayed. If you do not wish to display the login dialog, set the user name and password in theParams
string editor, and setLoginPrompt
to <False>.
To start the service, use the ServiceStart
method.
- Note:
TIBLicensingService
andTIBSecurityService
do not require that you start the service using theServiceStart
method. For example, to add a license you could use:
Action := LicenseAdd; ServiceStart;
or you could use:
AddLicense;