深圳升蓝软件
数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类   
Hiblue Software

读取Access数据库表名实例


March 25,2004
kendylan 于 8/30/2001 12:28:41 PM 加贴在 Joy ASP ←返回版面:  
<%
strConn="DBQ="+server.mappath("kendylan.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set objConn=server.createobject("Adodb.connection")
objConn.open strConn
set rsSchema=objConn.openSchema(20)
rsSchema.movefirst
Do Until rsSchema.EOF
  if rsSchema("TABLE_TYPE")="TABLE" then
      response.write rsSchema("TABLE_NAME") & "<br>"   
  end if
  rsSchema.movenext
Loop
set objConn=nothing
%>
       
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved