文件名称:asp运行环境测试
文件大小:25KB
文件格式:RAR
更新时间:2016-06-02 14:09:18
asp 测试
Set conn = Server.CreateObject("ADODB.Connection") 'conn.open "driver={sql server};server=localhost;database=home_db;uid=sa;pwd=;" ConnectString = "provider=microsoft.jet.oledb.4.0;data source="&server.mappath("asp.mdb")'&";uid=admin;pwd=asp" conn.Open ConnectString if err.number<>0 then err.clear set conn=nothing response.write "数据库连接出错!" Response.End end if sql="select * from asptest where ID=1" set rs=conn.execute(sql)
【文件预览】:
asp运行环境测试
----asp.mdb(572KB)
----asptest.asp(1KB)