Results 1 to 1 of 1
- 09-14-2011, 09:44 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 4
- Rep Power
- 0
connect to password protected access database
Hello guys
i have an access file. its protected by database password that is "zasxdx"
when i want to connect to this by the below code ,the INCORRECT USER OR PASSWORD error message appears.. but i can open this file directly in ms-office with this password...
is there any problem in my code?Java Code:Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String Database="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="; Database += FilePath.trim()+";DriverID=22;READONLY=true}"; Connection con = DriverManager.getConnection(Database, "admin", "zasxdx"); JOptionPane.showMessageDialog(FileChooser, "Connection Done");
i can run this when i unset the password
Similar Threads
-
Indexing Password-protected word files?
By pleonastic in forum LuceneReplies: 0Last Post: 02-17-2011, 04:43 PM -
connect java to MS Access Database
By needjavahelp in forum New To JavaReplies: 5Last Post: 07-14-2010, 01:53 PM -
Calling a .Net webservice(Password Protected) from java console application
By charan reddy in forum Advanced JavaReplies: 2Last Post: 03-23-2010, 04:46 AM -
how to connect java to MS Access database
By Manfizy in forum New To JavaReplies: 4Last Post: 12-24-2009, 04:50 PM -
How to check password of a jsp/html with the password of Database(mysql) #1
By sk.mahaboobbhasha@gmail.c in forum Java ServletReplies: 2Last Post: 11-14-2008, 01:11 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks