加密你的Access數(shù)據(jù)庫(kù)asp打開(kāi)方法
更新時(shí)間:2007年07月31日 14:57:36 作者:
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
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
相關(guān)文章
使用準(zhǔn)則進(jìn)行條件查詢--1.5.常用的準(zhǔn)則表達(dá)式
使用準(zhǔn)則進(jìn)行條件查詢--1.5.常用的準(zhǔn)則表達(dá)式...2006-11-11ADODB連接access是出現(xiàn) 80004005 錯(cuò)誤的解決方法
今天我寫(xiě)的程序放到客戶的機(jī)器上,一運(yùn)行就出現(xiàn)Selected Collating Sequence Not Supported 80004005這個(gè)錯(cuò)誤。經(jīng)過(guò)google一番后,解決如下。2009-09-09Access創(chuàng)建一個(gè)簡(jiǎn)單MIS管理系統(tǒng)
所謂MIS管理系統(tǒng),是一個(gè)由人、計(jì)算機(jī)及其他外圍設(shè)備等組成的能進(jìn)行信息的收集、傳遞、存貯、加工、維護(hù)和使用的系統(tǒng)。MIS管理系統(tǒng)是一種新興的技術(shù),那么下文中就給大家介紹Access這個(gè)有歷史的數(shù)據(jù)庫(kù)系統(tǒng)如何創(chuàng)建一個(gè)簡(jiǎn)單的MIS管理系統(tǒng)。2015-09-09Access數(shù)據(jù)庫(kù)日常維護(hù)方法(優(yōu)化)
這篇文章主要介紹了Access數(shù)據(jù)庫(kù)日常維護(hù)方法(優(yōu)化),需要的朋友可以參考下2015-10-10中文Access2000速成教程--1.3 在“設(shè)計(jì)”視圖中設(shè)計(jì)表
中文Access2000速成教程--1.3 在“設(shè)計(jì)”視圖中設(shè)計(jì)表...2006-11-11access數(shù)據(jù)庫(kù)用sql語(yǔ)句添加字段,修改字段,刪除字段
微軟的 Access 中包含 Data Definition Language (DDL) 來(lái)建立刪除表以及關(guān)系,當(dāng)然了,這也可以用 DAO 來(lái)解決。2009-10-10Access使用查詢--1.1. 用選擇查詢建立計(jì)算字段
Access使用查詢--1.1. 用選擇查詢建立計(jì)算字段...2006-11-11