There are 2 ways to connect to
the .mdb file in the DB folder.
a.
DSN connection
b. DSN-less connection
We recommend DSN-less connection as it works faster and is more reliable
compared to DSN connection especially when multiple users are accessing your database
concurrently.
The DSN-less script is provided below for your use. Please
copy, paste it in your script and amend the "filename" according to your requirement.
You may email
us for instructions if you still wish to use DSN connection.
<%
dim RS, dbConn, dbPath
dbPath
= Server.MapPath("db/filename.mdb")
Set dbConn = Server.CreateObject("ADODB.Connection")
dbConn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & dbPath
%>