我如何使用受密码保护的ACCESS数据库作为Vb.net项目的后端...? [英] how can i use a PASSWORD protected ACCESS database as a backend of my Vb.net project....?

查看:95
本文介绍了我如何使用受密码保护的ACCESS数据库作为Vb.net项目的后端...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Access数据库...受密码保护....
我以如下方式进行连接.......(无密码保护)


cn =新的OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0;数据源= D:\ My Documents \ db2.mdb")

cn.Open()
///代码.......

cn.close()

I has a Access database ...that is password protected....
I am connecting in this manner given as follow .......(Without password protection)


cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\My Documents\db2.mdb")

cn.Open()
///codes.......

cn.close()

推荐答案

咨询 [ ^ ].


这是一个访问数据库,它只是在文件中.您要做的只是将数据库文件放在应用程序期望的安装和部署项目的文件夹中.

但是,如果保护数据如此重要,我就不会使用Access数据库.
It''s an Access database, which is just in a file. All you do is put the database file in the folder of your Setup and Deployment project where your application expects it to be.

Though, if protecting the data was that important, I wouldn''t be using an Access database.


这篇关于我如何使用受密码保护的ACCESS数据库作为Vb.net项目的后端...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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