How to encrypt your Access Database ASP

Source: Internet
Author: User

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, character t 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.