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
List of available databases (myConnection as configuration tool)
-
- Posts: 7
- Joined: Sat 06 Jan 2018 15:37
Re: List of available databases (myConnection as configuration tool)
To solve your task, you can use the following code:
Code: Select all
MyConnection.Connected := True;
MyConnection.GetDatabaseNames(Memo.Lines);