当前位置: 代码网 > it编程>数据库>Access > 加密你的Access数据库asp打开方法

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

2024年05月15日 Access 我要评论
secureyouraccessdatabase howcanyoukeepunwantedpeoplefromdownloadingyourdatabasesimplybytypingintheur
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 
(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com