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

所属分类: 数据库 / Access 阅读数: 939
收藏 0 赞 0 分享
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 
更多精彩内容其他人还在看

随机提取N条记录

随机提取N条记录
收藏 0 赞 0 分享

给你的数据库文件减肥

给你的数据库文件减肥
收藏 0 赞 0 分享

将Access数据库移植到SQL Server

将Access数据库移植到SQL Server
收藏 0 赞 0 分享

Access使用查询--1.2.用选择查询进行分组数据的计算

Access使用查询--1.2.用选择查询进行分组数据的计算
收藏 0 赞 0 分享

Access使用宏控制程序

Access使用宏控制程序
收藏 0 赞 0 分享

Access使用宏控制程序 3.在宏中使用条件

Access使用宏控制程序 3.在宏中使用条件
收藏 0 赞 0 分享

Access使用宏控制程序 4.常用的宏操作

Access使用宏控制程序 4.常用的宏操作
收藏 0 赞 0 分享

Access使用宏控制程序--1.5.一个宏的实例——检验口令

Access使用宏控制程序--1.5.一个宏的实例——检验口令
收藏 0 赞 0 分享

Access使用宏控制程序--1.6.使用宏的几点说明

Access使用宏控制程序--1.6.使用宏的几点说明
收藏 0 赞 0 分享

Access使用查询--1.1. 用选择查询建立计算字段

Access使用查询--1.1. 用选择查询建立计算字段
收藏 0 赞 0 分享
查看更多