db="/Data/#Data.mdb" ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db) Set conn = Server.CreateObject("ADODB.Connection") conn.Open connstr
Conn.asp <% ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db) Set conn = Server.CreateObject("ADODB.Connection") conn.Open connstr %>
引用的页面 <% db="/Data/#Data.mdb" '设置正确数据库路径 '其它代码 %> <!--#include file="Inc/Conn.asp" --> '包含进来