华域联盟 Access 加密你的Access数据库asp打开方法

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

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 

本文由 华域联盟 原创撰写:华域联盟 » 加密你的Access数据库asp打开方法

转载请保留出处和原文链接:https://www.cnhackhy.com/11879.htm

本文来自网络,不代表华域联盟立场,转载请注明出处。

作者:

下一篇

已经没有了

发表回复

联系我们

联系我们

2551209778

在线咨询: QQ交谈

邮箱: [email protected]

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部