讀取Access數(shù)據(jù)庫表名實例
發(fā)布時間:2008-07-11 閱讀數(shù): 次 來源:網(wǎng)樂原科技
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
%>