ABISetProperty
ABISetProperty#
Syntax#
int ABISetProperty (
ABIPropType aPropType,
const char *aPropValue );
Arguments#
Data Type | Argument | In/Output | Description |
---|---|---|---|
ABIPropType | aPropType | Input | Specifies the name of the property to be set. One of the following can be used: ABI_USER, ABI_PASSWD ABI_LOGFILE |
const char * | aPropValue | Input | Value of the property to be set |
Return Values#
If successful, returns 0; otherwise, returns an error code.
Description#
This function specifies the user name and user password to connect to the Altibase server, and the log file path. On omission, the default values are SYS, MANAGER, and altibaseMonitor.log, respectively.
Error messages that occur in Altibase Monitoring API are written to log files. If the path is omitted and only the file name is specified, a log file is created in the path wherein the application runs.
Example#
if( ABISetProperty( ABI_USER, "SYS" ) != 0 )
{
/* ... error handling ... */
}