excel问题,问题解决后,20分送上

gaojie001 2004-12-03 08:52:42
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Excel Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x5fc Thread 0x688 DBC 0x2321144 Excel'。

/lm/cc.asp,行3


<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft excel driver (*.xls)};uid=admin;fil=excel 8.0;dbq=" & server.mappath("aaa.xls")
sql="select * from [sheet1$]"
set rel=conn.execute(sql)%>
<html>
<body>
<table>
<% do while not rel.eof %>
<tr>
<td width=100><%=rel("id")%></td>
<td width=100><%=rel("name")%></td>
<td width=100><%=rel("tel")%></td>
<td width=100><%=rel("address")%></td>
</tr>
<% rel.movenext
loop
%>
</table>
</body>
</html>
...全文
83 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
symboly 2004-12-03
  • 打赏
  • 举报
回复
呵呵
sun94510451 2004-12-03
  • 打赏
  • 举报
回复
ding
gaojie001 2004-12-03
  • 打赏
  • 举报
回复
问题已解决

28,409

社区成员

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

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