我正在尝试使用带有经典 ASP 中以下代码的记录集从数据库中获取数据。我使用的是 windows 7 32 位操作系统:
<%
dim con,rs
set con=Server.Createobject("ADODB.Connection")
con.Provider="Microsoft.Jet.OLEDB.4.0"
con.Open "c:\inetpub\wwwroot\New folder\123.mdb"
rs.Open "select * from student",con
for each x in rs.fields
response.write(x.name)
response.write("=")
response.write(x.value)
next
rs.Close
con.Close
%>
错误是:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/New folder/recordset.asp, line 7