萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp編程 >> 簡單asp連接access數據庫代碼

簡單asp連接access數據庫代碼

      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
 

copyright © 萬盛學電腦網 all rights reserved