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

Access
获取access数据库中表的个数及名称
安全的ACCESS加密方法
ACCESS如何打印窗体中当前显示的记录
Access2K中的查询分析器
Access下如何使用通用对话框
Access与Flash的结合应用
防止Access 2000密码被破译的方法
在Recordset对象中查询记录的方法
Excel和Access之间的数据交换
如何为Access数据库表添加日期或时间戳
Access:数据转换问题
如何在Access 2007数据库中添加附件
几种修复ACCESS数据库的实用方法
ACCESS中Field对象的标题属性
Access数据库出现0x80004005问题的解决方法
实例讲解Access数据库在线压缩的实现方法
带你深入了解Access数据库的4种安全方式
三大措施设置数据库安全 保障网站安全运营
Microsoft Access项目不能压缩的原因
详细讲解如何删除Access数据库中的空记录

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


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