如何为此JDBC添加密码:尝试连接到MS Access数据库的ODBC连接字符串 [英] How can I add a password to this JDBC:ODBC connection string that is trying to connect to an MS Access database

查看:154
本文介绍了如何为此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

这篇关于如何为此JDBC添加密码:尝试连接到MS Access数据库的ODBC连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆