my dog learned polymorphism*
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
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: 61218
    
  66

"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