File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC 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
Bookmark "database access" Watch "database access" New topic

database access

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245

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
internet detective

Joined: May 26, 2003
Posts: 29241

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.

[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
Similar Threads
Cannot find file / dbpath not correct
Is it possible to Read from a local Database without Server
How to access a database over a network
JNDI lookup from Applet
how to connect sql server2008 with jsp