关于数据库连接的问题~~~~~~~~~~
<%dim objconn
dim objrs
set objconn=server.createobject("adodb.connection")
objconn.connectionstring="provider=Microsoft.jet.oledb.4.0; data source=" & server.mappath("lx.mdb")
objconn.open
set objrs=server.createobject("adodb.recordset")
objrs.open "table" ,objconn,adopenkeyset,adlockoptimistic,adcmdtable
if not objrs.eof then
response.write "编号:" & objrs("id") &"<br>"
response.write "姓名:" & objrs("name") & "<br>"
response.write "性别:" & objrs("sex") & "<br>"
else
response.write "到达数据的结尾,无法打印记录"
end if
为什么总是出错连不上,请帮忙看看错在那儿了?