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

Access
教你快速掌握数据库查询优化的实用技巧
不同情况下修复Access数据库的实用方法
一个Access数据库数据传递的实例方法
讲解Access数据库中数据表的自动重新联接
巧用SQL链接服务器访问远程Access数据库
详细讲解Access数据库远程连接的实用方法
Access数据库下如何使用通用对话框的问题
解析:Perl下应当如何连接Access数据库
为什么Access数据库的精髓不在VBA之中
另类读写:ACCESS中Field对象的标题属性
逐步讲解向Access数据库上传且显示图片
Perl下应当如何连接Access数据库
Access 2007简易入门手册
ACCESS复合承载 性能超越MYSQL
使用ACCESS做网络版程序的四种解决方案
ASP压缩ACCESS数据库实例
Access完成累计余额的计算
asp如何和access数据库连接?
将Access升级为SQL Server 2005
在ACCESS中调用后台存储过程

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


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