最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp access数据库连接代码
时间:2010-11-10 编辑:简简单单 来源:一聚教程网
dim conn,connstr,timesdb,rs
timesdb="../www.111com.net/#tsm_admin_data.asp"
connstr="provider=microsoft.jet.oledb.4.0;data source=" & server.mappath(""×db&"")
'on error resume next
set conn = server.createobject("adodb.connection")
conn.open connstr
if err then
err.clear
set conn = nothing
response.write "数据库连接错误,请检查conn.asp文件连接字符串! "
response.end
end ifset rs=server.createobject("adodb.recordset")
%>
-
上一个: asp字符串截取函数
-
下一个: asp XMLHTTP备案信息查询程序
相关文章
- asp中常用的数据库连接方法介绍 04-28
- asp数据库连接代码 10-08
- asp 连接access数据库二种方法 08-04
- asp连接Visual Foxpro,MS text数据库代码 08-04
- asp连接access数据库 方法 12-05
- asp几种数据库连接方式 09-10