Recommended: How to customize your own XML file reading and writing methods using ASP Before this, I wrote two posts about ASP combining XML, introducing the technologies of replacing databases with XML and integrating databases with XML, so that databases are no longer our only choice in some cases. Compared with traditional databases, XML has the following advantages
This article illustrates two ways of linking ASP and ACCESS in ASP examples.
The following is the quoted content:
<%
dim dd,connstr
dd=data.mdb
connstr=provider=microsoft.jet.oledb.4.0;data source= & server.mappath (&dd&)
set bb=server.createobject (adodb.connection)
bb.open connstr
%>
<%
dim bb,connstr
connstr=provider=microsoft.jet.oledb.4.0;data source= & server.mappath (data.mdb)
set bb=server.createobject (adodb.connection)
bb.open connstr
%>
Share: How to use ASP to restrict access to web pages To use the ServerVariables property of the request object, use it to get the value of the environment variable. The syntax used is: Request.ServerVariables(variable), "variable" represents the name of the environment variable, such as the server host name,