& lt%
Set Conn = server. CreateObject("ADODB。 Connect ")
Connstr="DBQ="+server.mappath ("path to store database")+"; default dir =; DRIVER={Microsoft Access driver (*. Mdb)} "Connect Open Connection
% & gt
Write once on the page where you want to connect to the database.
Or go to conn.asp, and then you need this page.
& lt! -# include file = " conn . ASP "-& gt;
You don't need to understand why you wrote this, just so that you can connect to the database.