Monitoring PSQL Servers with DTO : DtoEngineInformation Object
 
DtoEngineInformation Object
DTO2 only: An object representing information about the database engine.
Properties
MajorVersion
Returns the major version of the engine.
MinorVersion
Returns the minor version of the engine.
dbuApiVersion
Version of the DTI/DTO interface
IsServerEngine
Returns true if the target is a server engine (as opposed to a workgroup engine)
ServerClientType
Returns one of the following:
0 = UNKNOWN_ENGINE_CLIENT
1 = NT_SERVER
3 = WIN32_CLIENT
4 = UNIX_SERVER
5 = CACHE_ENGINE_CLIENT
6 = VXWIN_SERVER
7 = VXLINUX_SERVER
9 = REPORT_ENGINE
Methods
None
Remarks
You can obtain a DtoEngineInformation object through the properties of the DtoSession Object.
Example
’ Instantiate session and connect
Dim my_session as new DtoSession
Dim result as DtoResult
result = my_session.Connect("myserver", "username", "password")
 
’ Get engine information from session
Dim my_engineInfo as DtoEngineInformation
Set my_engineInfo = my_session.EngineInformation
 
’ Now get the client type from the engine info object
clientType = my_engineInfo.ServerClientType
See Also
DtoSession Object