Open Conn
1,
<%
set conn=server.createobject("adodb.connection")
dbpath=server.mappath("../database/*.asa")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&dbpath&";password=123456"
%>
set conn=server.createobject("adodb.connection")
dbpath=server.mappath("../database/*.asa")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&dbpath&";password=123456"
%>
2,
adoConnection.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath ("/") & "xxx.mdb"
参考资料
1,ADO连接数据库字符串大全
http://www.office-cn.net/Article/Class5/Class20/200508/1701.html