Path to .mdb file outside document root

Sailor

Perch
I'd like to place my Access file outside the document root, so it cannot be linked to directly or downloaded. eg:

.../database
|...mydatabase.mdb

.../mydomain.com
|...default.asp (and all other normal web files)

Does anyone know what the connection string should be for this arrangement?

Thanks
 
Just make the /database folder, and in the connection string reference it with a ../
 
Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.mappath("../db.mdb") & ";"

or you can just use the fully qualified location of the database (ie: d:\websites\db.mdb)
 
Back
Top