如何为此JDBC添加密码:尝试连接到MS Access数据库的ODBC连接字符串
问题描述:
这是当前在非密码保护的MS Access数据库上工作的连接字符串。
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
如何为受数据库密码保护的MS Access DB的此连接字符串添加密码(非ULS )?
How do I add a password to this connection string for a MS Access DB protected by a database password (Non-ULS)?
谢谢!
答
从这里引用: Java支持
db.url = jdbc:odbc:Driver\={Microsoft Access Driver (*.mdb)}Dbq\=C:\Inventory.mdb;DriverID\=22;READONLY\=true; UID\=me;PWD\=secret