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

Access
长期使用中型Access数据库的一点经验与缺点
加密你的Access数据库asp打开方法
access下如何恢复已经删除的记录;如何恢复已经删除的表、窗体等等对象
恢复从 Access 2000、 Access 2002 或 Access 2003 中数据库删除表的方法
ACCESS的参数化查询,附VBSCRIPT(ASP)和C#(ASP.NET)函数
access的备注字段限制64K
根据IP跳转到用户所在城市的实现步骤
Access出现"所有记录中均未找到搜索关键字"的错误解决
Access数据库出现“无法保存;正被别的用户锁定”的原因
ACCESS 调用后台存储过程的实现方法
Access 模糊参数 分页查询
Access转Sql Server问题 实例说明
Access 执行SQL的方法
access 数据库自启动困难解决方法
ADODB连接access是出现 80004005 错误的解决方法
处理加了密码的MDB文件
ACCESS数据访问页配置实例
Word与Access数据交流技巧
ACCESS作为网站数据库的弊端
Oracle与Access表之间的导入和导出实现

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


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