This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "error in data base connection" Watch "error in data base connection" New topic
Author

error in data base connection

siva meetsu
Greenhorn

Joined: Dec 22, 2009
Posts: 1
Hi,
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.
Requirement:
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=";

database1+=sample.mdb+";PWD="+”sample”;
con = DriverManager.getConnection(database1 ,”admin”,”sample”);
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

"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: http://aspose.com/file-tools
 
subject: error in data base connection
 
Similar Threads
JDBC over LAN
Storing a password to encrypt/decrypt sensitive data.
Creating DSN
about odbc connection
JDBC/ODBC MS Access connection