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

所属分类: 数据库 / Access 阅读数: 959
收藏 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 使用总结一篇

最近帮朋友做了个小项目。遇到了一些问题,记录如下
收藏 0 赞 0 分享

Access中批量替换数据库内容的两种方法

其实在Access数据库中可以利用SQL语句来批量替换内容,只需一句话就能解决问题,下面通过两种方法来解决此问题。
收藏 0 赞 0 分享

ACCESS数据库文件的压缩和修复方法[图文]

本页介绍简单的压缩与修复功能,在线压缩容易出现问题,大家最后本地实现。
收藏 0 赞 0 分享

Access字符串处理函数整理

在access数据库中用的到的一些字符串处理函数代码,需要的朋友可以参考下。
收藏 0 赞 0 分享

Access数据库提示OleDbException (0x80004005): 操作必须使用一个可更新的查询

使用Access当数据库时,这个问题郁闷了我好几天啊![OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
收藏 0 赞 0 分享

如何让access自动编号从1开始排序实现方法

ACCESS数据库自动编号从1开始-如何让access自动编号重新从1开始排序,很是疑惑,于是搜集整理一些实用方法,希望可以帮助你们
收藏 0 赞 0 分享

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 分享
查看更多