File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes database access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "database access" Watch "database access" New topic

database access

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251

how to manage database access?

often i see people who create a user on the db to open a connection..... and after it check in the db if the username and password match with the database...... seem to easy to be the best way.....

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Yes, that is common. Typically, there is an "administrative" database user. You don't want to create database accounts for every web user. So that database user checks the password table to see if the web user should have access.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: database access
It's not a secret anymore!