Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread EDBSRVR as service ignores Server Description
Wed, Sep 7 2022 4:33 AMPermanent Link

gripsware

gripsware datentechnik gmbh

Hi,

we use edbsrvr as a service running on customers servers.
All our service names (displaynames) begins with our company -> better find in a group.

We have a preconfigured edvsrvr.ini with our installation.
[Server]
Server Name=EDBSRVR
Server Description=gripsware ElevateDB Server
...

For quite some time we are wondering why the db server is listed as EDBSRVR.

Today I was looking at the source dbserver.pas and find this:

procedure TServer.Initialize;
var
  TempName: String;
  TempDescription: String;
begin
 ...
  ReadServerInfo; //<<< read the INI
  TempName:=GetParam(SERVER_NAME_PARAM);
  TempDescription:=GetParam(SERVER_DESC_PARAM);
  FDescription:=TempDescription; // <<< overwrite the loaded config with ''???
 ...

So you should change the code to
if (TempDescription <> '') then
     FDescription:=TempDescription;

I don't wanna use a param SERVER_DESC_PARAM

Thank you
Norman
Image