查看: 884|回复: 0

[文章教程] 经典asp打开dbf数据库范例

[复制链接]
xuanxiao 发表于 2019-10-22 10:11:45 | 显示全部楼层 |阅读模式
Site_Test.rar (475 Bytes, 下载次数: 0, 售价: 2 个ASP币)

代码很简单,供参考

  1. dim conntemp,connstr

  2. set conntemp=server.createobject("adodb.connection")
  3. connstr="Provider = Microsoft.Jet.OLEDB.4.0; Data Source ="&Server.MapPath("/")&"; Extended Properties = DBASE IV"
  4. conntemp.open connstr
  5. set rstemp=conntemp.execute("select  *  from 2.DBF")
  6. if not (rstemp.bof and rstemp.eof) then
  7. do while not rstemp.eof
  8. response.write rstemp("name")&"<BR>"
  9. rstemp.movenext
  10. loop
  11. end if
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号