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

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

建立自由的会计日期的报表--1.1.认识几个有关时间的函数

建立自由的会计日期的报表--1.1.认识几个有关时间的函数
收藏 0 赞 0 分享

建立自由的会计日期的报表

建立自由的会计日期的报表
收藏 0 赞 0 分享

使用准则进行条件查询--1.5.常用的准则表达式

使用准则进行条件查询--1.5.常用的准则表达式
收藏 0 赞 0 分享

使用准则进行条件查询--1.4.从窗体中选择查询的条件

使用准则进行条件查询--1.4.从窗体中选择查询的条件
收藏 0 赞 0 分享

中文Access2000速成教程--1.1 使用“向导”设计数据库

中文Access2000速成教程--1.1 使用“向导”设计数据库
收藏 0 赞 0 分享

获取ACCESS2000数据库中所有表的名称

获取ACCESS2000数据库中所有表的名称
收藏 0 赞 0 分享

中文Access2000速成教程--1.3 在“设计”视图中设计表

中文Access2000速成教程--1.3 在“设计”视图中设计表
收藏 0 赞 0 分享

中文Access2000速成教程--1.4 使用“表向导”建立新表

中文Access2000速成教程--1.4 使用“表向导”建立新表
收藏 0 赞 0 分享

中文Access2000速成教程--1.8 定义表之间的关系

第八讲 定义表之间的关系前面定义了主键,以及相应的表后,就可以制定各表部的关系,从而建立起一个关系数据库。的应用与管理关系数据库,中文Access2000具有很强的能力,这正是中文Visual FoxPro 6与中文Excel 2000所不及的。为了建立关系数据库,首先要建立好各
收藏 0 赞 0 分享

中文Access2000速成教程--1.5 使用已有的数据自动建新表

中文Access2000速成教程--1.5 使用已有的数据自动建新表
收藏 0 赞 0 分享
查看更多