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

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

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

本站整理出四種常用的access連接方式,當(dāng)然,第1種這是最常用的(推薦使用)。
1.
set dbconnection=Server.CREATEOBJECT("ADODB.CONNECTION")
DBPath = Server.MapPath("customer.mdb") //customer.mdb是您的數(shù)據(jù)庫(kù)名,您可以在前面加上路徑
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 (該項(xiàng)在本站僅適用于MSSQL)
set conn=server.createobject("Adodb.connection")
conn.open "DSN=xxx;UID=;PWD=;Database=customer



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

璧山县| 称多县| 扎赉特旗| 郁南县| 林周县| 定南县| 武夷山市| 新乡县| 呼玛县| 富宁县| 兰西县| 冷水江市| 平利县| 军事| 宝山区| 如皋市| 双城市| 阿拉善盟| 邮箱| 平陆县| 涿鹿县| 城步| 洱源县| 新乡县| 滨州市| 镶黄旗| 鲁甸县| 东辽县| 甘肃省| 石城县| 巩留县| 青铜峡市| 博湖县| 安丘市| 通榆县| 兴山县| 紫阳县| 富蕴县| 怀来县| 唐河县| 万年县|