Attaching to a Service Manager
Go Up to Overview of the InterBase Service Components
To initiate a connection from your application to an InterBase service manager:
- 1. Place a service component on a form.
- 2. Set the
ServerNameproperty for that component to the name of the server on which the services are to be run. - 3. Use the
Protocolproperty to set the network protocol with which to connect to the server. - 4. Set the
Activeproperty to <True>. A login dialog is displayed. If you do not wish to display the login dialog, set the user name and password in theParamsstring editor, and setLoginPromptto <False>.
To start the service, use the ServiceStart method.
- Note:
TIBLicensingServiceandTIBSecurityServicedo not require that you start the service using theServiceStartmethod. For example, to add a license you could use:
Action := LicenseAdd; ServiceStart;
or you could use:
AddLicense;