ElevateDB doesn’t allow two TEDBDatabase components with same name. Here is what you should do:
Set the DatabaseName of the TEDBDatabase component to empty string
In the BeforeConnect event, check if it’s empty and if it is, change it to an unique name. For example:
procedure TDataModule1.EDBDatabase1BeforeConnect(Sender: TObject);
begin
if TEDBDatabase(Sender).DatabaseName = ‘’ then
TEDBDatabase(Sender).DatabaseName := IntToStr(NativeInt(TEDBDatabase(Sender)));
end;
```delphi