简体   繁体   English

如果数据库受密码保护,则vb.net数据库应用程序无法在用户计算机上运行

[英]vb.net database application does not work on user machine if database is password protected

In vb.net I am using password protected database with following connection string 在vb.net中,我使用带有以下连接字符串的受密码保护的数据库

connetionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\vai\\vaiDB.mdb;Jet OLEDB:Database Password=secret;" connetionString =“ Provider = Microsoft.Jet.OLEDB.4.0;数据源= C:\\ vai \\ vaiDB.mdb; Jet OLEDB:Database Password = secret;”

Database access works fine on the development machine. 数据库访问在开发计算机上工作正常。

But when i copy the exe and the database file on the user machine 但是当我在用户计算机上复制exe和数据库文件时

如果您的数据库位于正确的位置,您会收到什么错误消息?

Opening an Access database (.MDB) creates a temporary .LDB file in the same directory. 打开Access数据库(.MDB)将在同一目录中创建一个临时.LDB文件。 Does the user logged in to the target PC have write permissions to directory C:\\vai\\? 登录到目标PC的用户是否对目录C:\\ vai \\具有写权限?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM