Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Question about protecting access db, ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Question about protecting access db, ASP

 Post Reply Post Reply
Author
dannyboy111 View Drop Down
Newbie
Newbie
Avatar

Joined: 23 July 2003
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dannyboy111 Quote  Post ReplyReply Direct Link To This Post Topic: Question about protecting access db, ASP
    Posted: 23 July 2003 at 4:09am

I would like to protect my ACCESS database with a password. How do I configure it in access and what I must add in my ASP file?

 

that is my code for connection:

Set MyConn = Server.CreateObject("ADODB.Connection")
openStr = "driver={Microsoft Access Driver (*.mdb)};" & _
"dbq=" & Server.MapPath("\db.mdb")
MyConn.Open openStr,"",""

 

Thank you

 

Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2003 at 1:35pm

oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
           "Dbq=c:\somepath\mydb.mdb;" & _
           "Uid=admin;" & _
           "Pwd="

Take a look here:
http://www.able-consulting.com/ado_conn.htm?f=ado_conn.htm

Back to Top
dannyboy111 View Drop Down
Newbie
Newbie
Avatar

Joined: 23 July 2003
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dannyboy111 Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2003 at 1:44pm

Thanks for your reply.

There are different kinds of driver configuration, so could you please add those things with the password the way they are suppose to be to my code? I tried myself and keep getting a error msg.

Thank you.

Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 3:53am

Set MyConn = Server.CreateObject("ADODB.Connection")
openStr = "driver={Microsoft Access Driver (*.mdb)};" & _
"dbq=" & Server.MapPath("\db.mdb") & _
"Uid=yourlogin;" &_
"Pwd=yourpassword"
MyConn.Open openStr,"",""

Back to Top
dannyboy111 View Drop Down
Newbie
Newbie
Avatar

Joined: 23 July 2003
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dannyboy111 Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 12:15pm

Thanks!

How do I configure it in Access? I configured a password in the security options, but shall I configure also a username? where how?

 

Back to Top
rcalvert View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote rcalvert Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2003 at 5:42pm

Admin is the default password if not set user and group permissions.

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2003 at 6:40am

there are many programs that can open the "Password Protected Office Files", I used one and opened a password protected .mdb file in seconds...

 

it is better to protect it on the server, I suggest renaming the .mdb file to .asp file, it will function normally, but would never be downloadable through a web browser.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.