加密你的Access數(shù)據(jù)庫(kù)asp打開方法
更新時(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)文章
ACCESS數(shù)據(jù)庫(kù)文件的壓縮和修復(fù)方法[圖文]
本頁(yè)介紹簡(jiǎn)單的壓縮與修復(fù)功能,在線壓縮容易出現(xiàn)問題,大家最后本地實(shí)現(xiàn)。2010-11-11
八步解決ACCESS自動(dòng)編號(hào)問題(將SQL SERVER 2000數(shù)據(jù)庫(kù),轉(zhuǎn)換為ACCESS數(shù)據(jù)庫(kù))
這篇文章主要介紹了將SQL SERVER 2000數(shù)據(jù)庫(kù)轉(zhuǎn)換為ACCESS數(shù)據(jù)庫(kù)時(shí)的ACCESS自動(dòng)編號(hào)問題,需要的朋友可以參考下2013-08-08
Access中批量替換數(shù)據(jù)庫(kù)內(nèi)容的兩種方法
其實(shí)在Access數(shù)據(jù)庫(kù)中可以利用SQL語(yǔ)句來批量替換內(nèi)容,只需一句話就能解決問題,下面通過兩種方法來解決此問題。2010-06-06
建立自由的會(huì)計(jì)日期的報(bào)表--1.3.根據(jù)用戶選擇日期自動(dòng)計(jì)算期初期末日期
建立自由的會(huì)計(jì)日期的報(bào)表--1.3.根據(jù)用戶選擇日期自動(dòng)計(jì)算期初期末日期...2006-11-11
使用準(zhǔn)則進(jìn)行條件查詢--1.4.從窗體中選擇查詢的條件
使用準(zhǔn)則進(jìn)行條件查詢--1.4.從窗體中選擇查詢的條件...2006-11-11
使用準(zhǔn)則進(jìn)行條件查詢--1.3.運(yùn)行查詢前輸入?yún)?shù)
使用準(zhǔn)則進(jìn)行條件查詢--1.3.運(yùn)行查詢前輸入?yún)?shù)...2006-11-11

