您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> asp编程 >> 正文

简单asp连接access数据库代码

作者:佚名    责任编辑:admin    更新时间:2022-06-22

      Set rs = nothing
      Set conobject = Server.CreateObject("ADODB.Connection")
      db="example.mdb"
      DBPath = Server.MapPath(db)
      conobject.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ="&DBPath
      Set rs = Server.createobject("adodb.recordset")

      Set conn = Server.CreateObject("ADODB.Connection")
      DBPath = Server.MapPath(db)
      conn.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ="&DBPath