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

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

Access日期与时间函数汇总

Access日期与时间函数汇总,需要的朋友可以参考一下
收藏 0 赞 0 分享

一句sql更新两个表并可更新对应的字段值具体实现

本文用一句sql语句更新两个表并可更新对应的字段的值,具体的实现如下,有类似需求的朋友可以参考下,希望可以帮助到你
收藏 0 赞 0 分享

八步解决ACCESS自动编号问题(将SQL SERVER 2000数据库,转换为ACCESS数据库)

这篇文章主要介绍了将SQL SERVER 2000数据库转换为ACCESS数据库时的ACCESS自动编号问题,需要的朋友可以参考下
收藏 0 赞 0 分享

ACCESS数据库修改自动编号的ID值为零的方法分享

这篇文章介绍了ACCESS数据库修改自动编号的ID值为零的方法,有需要的朋友可以参考一下
收藏 0 赞 0 分享

access不能打开注册表关键字错误处理方法(80004005错误)

本文介绍访问access提示不能打开注册表关键字,access 80004005 错误的处理方法
收藏 0 赞 0 分享

Access数据库不能写不能更新的解决方法

本文提供了Access数据库不能写不能更新的解决方法,主要是权限原因,具体看下面的具体解决方法
收藏 0 赞 0 分享

获取Gridview中ButtonField的text属性

本篇文章主要介绍了获取Gridview中ButtonField的text属性。需要的朋友可以过来参考下,希望对大家有所帮助
收藏 0 赞 0 分享

四种数据库随机获取10条数据的方法

这篇文章主要介绍了四种数据库随机获取10条数据的方法,需要的朋友可以参考下
收藏 0 赞 0 分享

Access连接数据源(ODBC)配置(新手必知)

win7 64位旗舰版控制面板中管理工具下的数据源(ODBC)配置竟然只有SQLServer的驱动,其他的都没有了,此问题的解决方法如下
收藏 0 赞 0 分享

读取注册表根据Office版本获取数据库连接字段

本节主要介绍了如何根据Office版本获取数据库连接字段,以读取注册表获取Office版本,实现代码如下,感兴趣的朋友不要错过
收藏 0 赞 0 分享
查看更多