Sailor
1
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 ../
jonyah
3
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)