<%
set
conn
=
Server.CreateObject("ADODB.Connection")
conn.open
"/db.mdb","username","password"
%>
用实际的数据库相对路径连接:
<%
Set
conn
=
Server.CreateObject("ADODB.Connection")
Strconn="DRIVER={Microsoft
Access
Driver
(*.mdb)}
"
Strconn=Strconn
&
"DBQ="
&
Server.MapPath("/db.mdb")
conn.Open
Strconn
%>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)