Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a password to this JDBC:ODBC connection string that is trying to connect to an MS Access database

This is the connection string that is currently working on a non-password protected MS Access database.

this code snippet is from our properity file:

db.url = jdbc:odbc:Driver\={Microsoft Access Driver (*.mdb)};Dbq\=C:\Inventory.mdb;DriverID\=22;READONLY\=true

How do I add a password to this connection string for a MS Access DB protected by a database password (Non-ULS)?

Thanks!

like image 510
WillPhil Avatar asked Nov 24 '25 12:11

WillPhil


1 Answers

Referenced from here: Java Support

db.url = jdbc:odbc:Driver\={Microsoft Access Driver (*.mdb)}Dbq\=C:\Inventory.mdb;DriverID\=22;READONLY\=true; UID\=me;PWD\=secret
like image 78
Tommy Avatar answered Nov 26 '25 02:11

Tommy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!