当前位置: 首页 > 图文教程 > 数据库 > Access > 加密你的Access数据库asp打开方法

Access
access中数据表的自动重新联接
轻松用Access打造图书管理系统
将ACCESS转化成SQL2000要注意的问题
远程连接access数据库的几个方法
保护Access 2000数据库的安全
十万条Access数据表分页的解决方法
设定Access数据库自增长字段初始值
带数据缓存的ACCESS数据库操作类
如何增强网站数据库Access文件的安全性
ACCESS统计不重复记录个数问题
Access报表打印:自动分页
备份你的改过后缀名的ACCESS数据库
用ASP显示ACCESS数据库的GIF图象
Access如何维护表的参照完整性
Access中如何自动建立表的连接表达式
access处理重复记录的方法
如何在Access报表中每隔N行显示一条粗线
Access 新手来看:编号的生成问题
Access为后台数据库的网站统计系统
Access数据有效性检查

加密你的Access数据库asp打开方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 154 ::
收藏到网摘: n/a

Secure Your Access Database
How can you keep unwanted people from downloading your database simply by typing in the url?
You can't, it is not possible. BUT you can secure it by adding a password to it. Below I will
walk you through the steps needed to accomplish this.
1. Download your database (new feature added today, see above).
2. Open it up in MS Access. (Check the "Exclusive" checkbox in the file dialog box. If you don't,
Access will ask you to later.)
3. Menu Bar --> Tools --> Security --> Set Database Password Select "Tools" from the menu bar,
then "Security", then "Set Database Password."
4. Your password can be: (quoted from MS Access Help) "Passwords can be any combination of 14 or
fewer characters, except control characters. Passwords are case-sensitive."
5. Upload your password protected database to Brinkster.
6. What needs to be changed in your code:
Only your connection string needs to be changed. Here is a sample:
Set Conn = Server.CreateObject("ADODB.Connection")
MyConnStr = "DRIVER={Microsoft Access Driver (*.mdb)}; "
MyConnStr = MyConnStr & "DBQ=d:sitesmembernamedbmydbase.mdb; "
MyConnStr = MyConnStr & "PWD=yourpassword"
Conn.Open(MyConnStr)
Add the "PWD=yourpassword" to the connection string and you are set!
7. In the SQL Mgr, a new field has been added for password. This way you can still use the SQL
Mgr, even if your Access database has been password protected!
By: Jared Stauffer