Solution
-
Upload
your .mdb
file to
the Data
folder
parallel
to the
wwwroot
folder.
- Create
the server
connection
object:
Set adoCon
= Server.CreateObject("ADODB.Connection")
- Define
the path:
strDbPath
= "d:\websites\yourdomain.com\data\yourdatabase.mdb"
- Define
the driver
and connection:
strCon
= "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source="
&
strDbPath
Note:
Your database
can reside
anywhere
inside
your domain;
placing
it in
the Data
folder
outside
of the
wwwroot
folder
is more
secure.
If your
database
resides
in different
folder
under
your wwwroot,
adjust
the path
to: strDbPath
= "d:\websites\yourdomain.com\wwwroot\datafolderpath\yourdatabase.mdb"

|