Page 1 of 1

List of available databases (myConnection as configuration tool)

Posted: Wed 19 Dec 2018 16:29
hi

Within my application i use a encrypt configuration file. This configuration file contains :
- server/ip
- port
- username
- password
- database

yes..it looks like myConnection. The user who is on site fills the configuration file
using a simple delphi form. Now i would like to retrieve all available databases
for this server for this username within a combobox. Just like myConnection does.

I have all the nessacary info(see above) but how can i retrieve all
available database in a combobox or is there a better way in combination
with myConnection?


Regards Peter

Re: List of available databases (myConnection as configuration tool)

Posted: Thu 20 Dec 2018 09:48
by ViktorV
To solve your task, you can use the following code:

Code: Select all

  MyConnection.Connected := True;
  MyConnection.GetDatabaseNames(Memo.Lines);