熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

簡單asp連接access數據庫代碼

2022-06-13   來源: .NET編程 

  Set rs = nothing
      Set conobject = ServerCreateObject("ADODBConnection")
      db="examplemdb"
      DBPath = ServerMapPath(db)
      conobjectOpen "Driver={Microsoft Access Driver (*mdb)};DBQ="&DBPath
      Set rs = Servercreateobject("adodbrecordset")

  Set conn = ServerCreateObject("ADODBConnection")
      DBPath = ServerMapPath(db)
      connOpen "Driver={Microsoft Access Driver (*mdb)};DBQ="&DBPath
 


From:http://tw.wingwit.com/Article/program/net/201311/14452.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.