I am working on a project and was wondering what the best practice for the following scenario would be?
I am developing an application that needs to have user access control. When the user launches the application they will be prompted for username and password. The application is designed such that users will be connecting to different databases depending on what school they are from. So, each school is going to have a different database address. So, would i ask the user for the database url at the login prompt too?
Also, how do i re-strict access to the database to only allowing that application access to the database? For instance, you can’t launch a different application and try to connect to that database with the same username and password, because it is not the correct application?
Thanks, if you need me to explain anything further, please let me know.
More Detail:
The list of schools would not be set at compile time. Schools would select to use the application and then set up a database for the use of the software and then their students would use the application. So, there would not be an initial list of schools. What would be your suggestion to solve that problem?
Each school host’s their own server.
There’s no need to do a different database per school, or even a different table for that matter.
You can just use a tables like
Select a user using:
The
:....are your parameters.