高手帮我看一下,.asa文件改成.mdb的用ACCESS打不开 conn.asp文件里的代码是这样的:
<%
dim db,connstr,conn
db="/dsd998/dsd998.asa"
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connstr
If Err Then
err.Clear
Set Conn = Nothing
Response.Write "数据库连接出错,请检查数据库参数设置。"
Response.End
End If
sub CloseConn()
conn.close
set conn=nothing
end sub