请高手帮看看!!!!!!
dqssj 2004-12-10 10:47:14 我用VFP和ASP做一个网页,当我在VFP中录入数据时,网页2秒自动刷新数据.可是运行起来总提示错误,如下,
Provider 错误 '80004005'
未指定的错误
/conn.asp,行7
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC 驱动程序不支持所需的属性。
/index.asp,行12
我的index.asp源码为
<!--#include file="conn.asp"-->
<html>
<head><meta http-equiv="refresh" content="2">
<title>无标题文档</title>
</head>
<body>
<%dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from danw "
rs.open sql,conn,1,1
if not rs.eof then
response.Write rs("d_ming")
end if
%>
</body>
</html>
我的conn.asp源码为
<%
dim conn,dsnstr,username,password
dsnstr="jfgl"
username=""
password=""
set conn=server.createobject("ADODB.CONNECTION")
conn.open "dsn=" & dsnstr & ";uid=" & username & ";pwd=" & password
%>
用系统DSN我已配置了,名为:JFGL
请高手给看看!!!