Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protecting the .mdb

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I have a .mdb stored on the server containing contact information for various clients. If somebody knows which directory it is in they can easily just type the address in and download the database. How can I protect it from import but still make it writable from ASP files?

Thanks.
 
Simple way would be to set a database password and
include it in the connection string (pwd=<password here>).
This won't stop them downloading it, but should stop most people from opening it. codestorm
 
Hi,

This is the vbscript I use, where would i put the connection string (pwd=<password here>)?

Set dbconnection = Server.CreateObject(&quot;ADODB.Connection&quot;)
dbconnection.open &quot;DSN=clients&quot;

Set RS_Users = Server.CreateObject(&quot;ADODB.Recordset&quot;)

Thanks.
 
Ahh, in that case it would go in the DSN.
Haven't dealt with DSN's for a while, but
there should be somewhere you can view
the contents of the DSN. It will probably
be something like
DRIVER=Microsoft Access Driver (*.mdb)
DBQ=<drive>:\<path>\<dbname>.mdb

just add

pwd=<password>

under those codestorm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top