It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes error in data base connection 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 "error in data base connection" Watch "error in data base connection" New topic

error in data base connection

siva meetsu

Joined: Dec 22, 2009
Posts: 1
In our application we are using jdbc:odbc:driver to connect with MSAccess database (.mdb), The data base is password protected,, when I run the application and access the database the user name, application path and the password is stored in the system registry automatically . The path where the details are stored is
I don’t know the reason behind this update in the registry, how can I remove the entry from the registry using java code.
The password should not be updated in the registry , how can I avoid this?
The sample code is
String database1 = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";

con = DriverManager.getConnection(database1 ,”admin”,”sample”);
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63355

"siva dct", please check your private messages for an important administrative matter.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: error in data base connection
It's not a secret anymore!