Inquiring information about the ADS Professional
The :setProperty() method of the DacSession class allows for retrieving and/or setting properties of the server. The Advantage Database Server, however, has only properties that are read-only and cannot be changed by a client application. To retrieve server properties, #define constants contained in the ADSDBE.CH file must be passed to oDacSession:setProperty(). The DacSession object forwards a defined value to the server and the method returns the server response. The constants listed in the following table are available to inquire server properties:
| Constant | Return value of method |
|---|---|
| ADSDBE_SERVER_TYPE | Numeric value equivalent with a #define constant. |
| It indicates the type of the ADS in use: | |
| - ADSDBE_NETWARE | |
| - ADSDBE_NT | |
| - ADSDBE_LOCAL | |
| - ADSDBE_WIN9X | |
| - ADSDBE_NETWARE5 | |
| - ADSDBE_LINUX | |
| ADSDBE_SERVER_VERSION | Character string indicating the ADS version |
| ADSDBE_ANSI_LANG | Character string describing the fixed ANSI |
| character set of your ADS Server installation. | |
| ADSDBE_OEM_LANG | Character string describing the fixed OEM |
| character set of your ADS Server installation. |
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.