Method to get a list of all the database servers

Questions, tips and tricks and techniques for scripting in Servoy

Method to get a list of all the database servers

Postby stefaniacolombara » Sat Dec 21, 2019 1:23 pm

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
stefaniacolombara
 
Posts: 40
Joined: Mon Feb 06, 2012 11:19 am

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

Postby rgansevles » Fri Dec 27, 2019 10:43 am

Stefania,

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


Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

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

Postby stefaniacolombara » Tue Jan 07, 2020 12:15 pm

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
Attachments
serveradmin.PNG
serveradmin.PNG (14.62 KiB) Viewed 3769 times
stefaniacolombara
 
Posts: 40
Joined: Mon Feb 06, 2012 11:19 am


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests