加密你的Access数据库

2016-01-29 18:22 8 1 收藏

加密你的Access数据库,加密你的Access数据库

【 tulaoshi.com - 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


 

来源:https://www.tulaoshi.com/n/20160129/1505489.html

延伸阅读
How to speed up database access Here is a trick to loop through a recordset faster. Often when looping through a recordset people will use the following code: Do While Not Records.EOF   Combo1.AddItem Records![Full Name]   Eecords.Movenext LoopThe problem is that everytime the database moves to the next re...
标签: Web开发
一.建立数据库及ODBC数据源 1.建立jcc.mdb数据库及user表      2.添加测试数据 3.配置ODBC数据源 二.在%wwwroot%/下,新建Access数据库连接文件Select.jsp Select.jsp源码如下: %@page contentType="text/html;charset=gb2312"% %@page import="java.sql.*"% html body ...

经验教程

506

收藏

54
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部