This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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: 250

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: 32312

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: database access
It's not a secret anymore!