一区二区三区高清av电影,骚逼AAA免费,插鸡鸡网址在线观看视屏,龟头肏美女阴道少妇视频

如何連接ACCESS數(shù)據(jù)庫?

發(fā)布時間:2010/3/20 14:47:00

本站整理出四種常用的access連接方式,當然,第1種這是最常用的(推薦使用)。
1.
set dbconnection=Server.CREATEOBJECT("ADODB.CONNECTION")
DBPath = Server.MapPath("customer.mdb") //customer.mdb是您的數(shù)據(jù)庫名,您可以在前面加上路徑
dbconnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
SQL="select * from auth where id='" & user_id &"'"
SET uplist=dbconnection.EXECUTE(SQL)
2.
set dbconnection=Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("customer.mdb")
dbconnection.Open "provider=microsoft.jet.oledb.4.0;data source="&dbpath
SQL="select * from auth where id='" & user_id &"'"
SET uplist=dbconnection.EXECUTE(SQL)
3.
DBPath = Server.MapPath("customer.mdb")
set session("rs")=Server.CreateObject("ADODB.Recordset")
' rs=Server.CreateObject("ADODB.Recordset")
connstr="provider=microsoft.jet.oledb.4.0;data source="&dbpath
SQL="select * from auth where id='" & user_id &"'"
session("rs").Open sql,connstr,1,3
4.
建odbc源xxx (該項在本站僅適用于MSSQL)
set conn=server.createobject("Adodb.connection")
conn.open "DSN=xxx;UID=;PWD=;Database=customer



Copyright© 2004-2020 河南海騰電子技術有限公司 版權所有   經(jīng)營性ICP/ISP證 備案號:B1-20180452   豫公網(wǎng)安備 41019702002018號    電子營業(yè)執(zhí)照

阳曲县| 城固县| 惠东县| 东阳市| 华池县| 阳山县| 中卫市| 博罗县| 青神县| 普兰店市| 汨罗市| 积石山| 长春市| 繁昌县| 安图县| 顺平县| 杭锦后旗| 南丰县| 武义县| 闵行区| 肥乡县| 高安市| 红河县| 建平县| 兴山县| 新绛县| 内黄县| 绥棱县| 娄底市| 明星| 宝应县| 依兰县| 十堰市| 肇庆市| 衡阳县| 楚雄市| 永兴县| 哈尔滨市| 崇礼县| 横山县| 贵定县|