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

Access
多表查询技巧
用 INNER JOIN语法联接多个表建记录集
union这个连接是有什么用的和INNER JOIN有什么区别
Microsoft Access 数据库常规规格
随机提取N条记录
给你的数据库文件减肥
将Access数据库移植到SQL Server
Access使用查询--1.2.用选择查询进行分组数据的计算
Access使用宏控制程序
Access使用宏控制程序 3.在宏中使用条件
Access使用宏控制程序 4.常用的宏操作
Access使用宏控制程序--1.5.一个宏的实例——检验口令
Access使用宏控制程序--1.6.使用宏的几点说明
Access使用查询--1.1. 用选择查询建立计算字段
Access使用查询
使用准则进行条件查询
Access使用查询 在查询中执行计算的注意事项
使用准则进行条件查询--1.3.运行查询前输入参数
建立自由的会计日期的报表--1.3.根据用户选择日期自动计算期初期末日期
建立自由的会计日期的报表--1.4.让报表处理期初和期末之间的数据

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


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