请高手帮看看!!!!!!

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
请高手给看看!!!
...全文
39 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lienzhu 2004-12-10
  • 打赏
  • 举报
回复
<%
dim conn,dsnstr,username,password
dsnstr="jfgl"
username=""
password=""
set conn=server.createobject("ADODB.CONNECTION")
conn.connectionString="dsn=" & dsnstr & ";uid=" & username & ";pwd=" & password
conn.open

%>
mrshelly 2004-12-10
  • 打赏
  • 举报
回复
rs.close
conn.close
set rs=nothing
set conn=nothing

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧