Page 1 of 1

Method to get a list of all the database servers

PostPosted: Sat Dec 21, 2019 1:23 pm
by stefaniacolombara
Hello,

Do you know any method to get the list of all the database servers?

I need to have a list of all the servers specified in the properties file.

Thank you all,
Best

Stefania

Re: Method to get a list of all the database servers

PostPosted: Fri Dec 27, 2019 10:43 am
by rgansevles
Stefania,

There is a function on databaseManager for that:
Code: Select all
databaseManager.getServerNames()


Rob

Re: Method to get a list of all the database servers

PostPosted: Tue Jan 07, 2020 12:15 pm
by stefaniacolombara
Hi Rob,

Thanks for the reply.
However, I need all the active database servers that are specified within servoy admin page.
The method databaseManager.getServerNames() doesn't return all of them.

Thank you,

Stefania