Hello.
I need help with the following situation:
Context:
I have an initial screen that asks for a username and password. Depending on the user that enters I need to make the connection to database #1 or #2 or #3.
I connect to MS SQL Server using jRDC2 and a file containing the config properties whith this sentence:
Return File.ReadMap(File.DirAssets, "config.properties").
In this file is the ip, the name of the database and the port:
JdbcUrl=jdbc:jtds:sqlserver://xx.xx.xxx.xxx/BDxxxx
User=xxx-xx
Password=xx.yyyy.xx
ServerPort=#####
Ask:
Depending on the registered user, how can the database be dynamically assigned?
The IP and the ServerPort are the same. Just change the DB
Thank you very much and greetings.
I need help with the following situation:
Context:
I have an initial screen that asks for a username and password. Depending on the user that enters I need to make the connection to database #1 or #2 or #3.
I connect to MS SQL Server using jRDC2 and a file containing the config properties whith this sentence:
Return File.ReadMap(File.DirAssets, "config.properties").
In this file is the ip, the name of the database and the port:
JdbcUrl=jdbc:jtds:sqlserver://xx.xx.xxx.xxx/BDxxxx
User=xxx-xx
Password=xx.yyyy.xx
ServerPort=#####
Ask:
Depending on the registered user, how can the database be dynamically assigned?
The IP and the ServerPort are the same. Just change the DB
Thank you very much and greetings.