代码如下,为什么调试时会出问题呢,万分费解!!!!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>数据库连接示例</title>
</head>
<body>
<%
dim lconn
set lconn = server.createobject("adodb.connection"
lconn.open = "Driver = {microsoft access driver (*.mdb);dbq=c:\windows\desktop\new\mdb\reg.mdb}"
%>
<%
set rs =server.createobject("adodb.recordrset"
lsql = "select * from reg order by desc"
set rs = lconn.execute(lsql)
do while not rs.eof
rs.movenext
loop
rs.close
set rs = nothing
lconn.close
set lconn = nothing
%>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
数据库连接时为什么总是出问题,????