DtoServices Object
This object is a collection of DtoService objects, representing the PSQL services running on the server.
Properties
Methods
RestartAllServices method
StartRelational method
StartTransactional method
StopRelational method
StopTransactional method
StartDXAgent
StartDXReplication
StopDXAgent
StopDXReplication
Remarks
The methods of DtoServices control the PSQL engine services running on the machine you connected to with the DtoSession object. All these methods return the enumeration DtoResult.
This object lets you start and stop the PSQL engine services running on Windows platforms. Also, you can query the current status of PSQL services using the Status or StatusString properties.
Security Information Regarding DtoServices Object
1
Click Start, select Settings and point to Control Panel.
2
Double-click Administrative Tools.
3
Double-click Internet Service Manager.
4
5
6
Click the Directory tab.
7
Specify Low (IIS Process) in the Application Protection field as shown in Figure 1.
Figure 1 Required IIS Directory Properties for DTO Services Methods
Examples
’ This example connects to a server and restarts all
’ PSQL services.
 
Dim my_session as new DtoSession
Dim my_services as DtoServices
Dim result as DtoResult
 
result = my_session.Connect("myserver", "username", "password")
Set my_services = my_session.Services
result = my_services.RestartAllServices
 
’ This example connects to a server and starts the
’ DataExchange (DX) Agent service and the DX replication
’ service.
 
Dim my_session as new DtoSession
Dim my_services as DtoServices
Dim result1 as DtoResult
Dim result2 as DtoResult
 
result = my_session.Connect("myserver", "username", "password")
Set my_services = my_session.Services
result1 = my_services.StartDXReplication
result2 = my_services.StartDXAgent
See Also
DtoSession Object
DtoSetting Object
Methods Detail
RestartAllServices method
Stops and then restarts the services for transactional, relational, DataExchange (DX) agent, and DX replication.
Syntax
result = Services.RestartAllServices
Arguments
Return Values
StartRelational method
Starts the Relational service.
Syntax
result = Services.StartRelational
Arguments
Return Values
StartTransactional method
Starts the Btrieve transactional engine service.
Syntax
result = Services.StartTransactional
Arguments
Return Values
StopRelational method
Stops the Relational engine service.
Syntax
result = Services.StopRelational
Arguments
Return Values
StopTransactional method
Stops the Btrieve transactional engine service.
Syntax
result = Services.StopTransactional
Arguments
Return Values
StartDXAgent
Starts the DataExchange (DX) agent service. The DX agent is a component that detects critical replication failures and notifies administrators by e‑mail. See the chapter “Using the DataExchange Utilities and Services” in DataExchange User’s Guide for more information about DX agent.
You can start the DX agent service before the DX replication service, but the agent returns a message informing you that replication is stopped. This is expected behavior because the replication service is not yet running.
Syntax
result = Services.StartDXAgent
Arguments
Return Values
StartDXReplication
Starts the DataExchange (DX) replication service (the Replication Engine). The Replication Engine captures and shares changes from one PSQL database to other databases in a DataExchange replication network. See DataExchange User’s Guide for more information about the Replication Engine.
Starting the replication service also starts the transactional and the relational services.
Syntax
result = Services.StartDXReplication
Arguments
Return Values
StopDXAgent
Stops the DataExchange (DX) agent service. The DX agent is a component that detects critical replication failures and notifies administrators by e‑mail. See the chapter “Using the DataExchange Utilities and Services” in DataExchange User’s Guide for more information about DX agent.
Syntax
result = Services.StopDXAgent
Arguments
Return Values
StopDXReplication
Stops the DataExchange (DX) Replication Engine. The Replication Engine captures and shares changes from one PSQL database to other databases in a DataExchange replication network. See DataExchange User’s Guide for more information about the Replication Engine.
Syntax
result = Services.StopDXReplication
Arguments
Return Values