[简单asp连接access数据库]简单asp连接access数据库代码

更新时间:2017-07-14    来源:Access    手机版     字体:

【www.bbyears.com--Access】

// 设置数据源conn.asp

 代码如下

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

本文来源:http://www.bbyears.com/shujuku/34101.html