aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 31421

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