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

Access
数据库应用程序需注意的问题
用Access分析网站实例
一个ACCESS数据库数据传递的方法
服务器架站应用:打造安全mdb数据库
Access数据库安全的几个问题
以前流行的4种Access数据库安全方式
三招设置数据库安全 保障网站安全运营
解决用Access数据库建站维护不便的问题
十万条Access数据表分页的两个解决方法
PHP高级技巧:使用PHP模拟HTTP认证
Access数据库成功导入Oracle库方法
使用access数据库时可能用到的数据转换
疑难解答:怎样使用Access数据库压缩文件
堵住电脑中的Access漏洞 拒绝恶意网站
在Access中模拟sql server存储过程翻页
如何将文本文件转换为ACCESS数据库
Access创建一个简单MIS管理系统
将mysql数据导入access数据库
Access数据库用另一种方式管理密码
Access如何制作复杂报表

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 158 ::
收藏到网摘: 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