OLE Automation 内部错误

Atai-Lu 2008-07-07 01:56:33
Microsoft JET Database Engine 错误 '80040e14'

OLE Automation 内部错误

/userinfo.asp,行 15
---------------------
代码如下:

<!--#include file="include/conn.asp"-->
<!--#include file="include/fun.asp"-->
<%
dim depar
depar = Trim(Request("depar"))
if not isnumeric(depar) or depar="" then depar=0
dim where
if depar<>0 then
' sql="select * from [UserTable] where [Department]=1" '执行此sql则报错
sql="select * from [UserTable] where [Department]="& depar '这个也会报错(我确定Department字段存在且为数字类型)
'Response.Write(sql):Response.End()
else
sql="select * from [UserTable]" '这个可以正常执行
end if
'//本地运行正常,服务器上报错
set rs=conn.execute(sql)'报错的是这里
'set rs = Server.CreateObject("adodb.recordset")
'sql="select * from [UserTable] "&where&" order by uid asc"
'rs.open sql,conn,1,1 '这种方式同样报错
do while not rs.eof
%>
<a href="" onclick="insert('<%=rs("UserName")%>');return false;"><%=rs("UserName")%>(<%=getDepartment(rs("Department"))%>)</a><br/>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>

以下代码在服务器上可以正常执行

<!--#include file="include/conn.asp"-->
<!--#include file="include/fun.asp"-->
<%
dim tid
tid = Trim(Request("tid"))
if not isnumeric(tid) or tid="" then tid=0
set rs=conn.execute("select * from [TopicList] where tid="&tid)
if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"> 录入人:</td>
<td align="left"> <%=rs("UserName")%> 分机号:<%=rs("TelPhone")%></td>
</tr>
<tr>
<td align="right"> 负责人:</td>
<td align="left"> <%=rs("Manage")%> 分机号:<%=rs("ManageTelPhone")%></td>
</tr>
<tr>
<td align="right"> 进度:</td>
<td align="left"> <%=getWorkState(rs("WorkState"))%></td>
</tr>
</table>
<%
else
Response.Write("没有找到对应的信息...")
end if
rs.close
set rs=nothing
%>
...全文
1504 36 打赏 收藏 转发到动态 举报
写回复
用AI写文章
36 条回复
切换为时间正序
请发表友善的回复…
发表回复
任天下 2011-10-08
  • 打赏
  • 举报
回复
你把该字段改为字符串型看看是不是没问题
Atai-Lu 2008-07-08
  • 打赏
  • 举报
回复
[Quote=引用 34 楼 chinmo 的回复:]
你把该字段改为字符串型看看是不是没问题
[/Quote]
不管啦,换服务器
反正也就那台服务器出问题,其它电脑都正常
  • 打赏
  • 举报
回复
你把该字段改为字符串型看看是不是没问题
hxkuse 2008-07-08
  • 打赏
  • 举报
回复
数据库传上来看看??
Atai-Lu 2008-07-08
  • 打赏
  • 举报
回复
[Quote=引用 27 楼 chinmo 的回复:]
设置 Common Files/ADO 和 WINDOWS/System32 目录的权限为允许 IUSR 可以读和执行。


The solution was not to set permissions for the folder, they were correct.

The solution was to set permissions for Common Files/ADO and
WINDOWS/System32 to allow IUSR to read and execute.
[/Quote]
呃,试过了,没用,哎
Atai-Lu 2008-07-08
  • 打赏
  • 举报
回复
[Quote=引用 28 楼 chinmo 的回复:]
http://groups.google.com/group/microsoft.public.inetserver.asp.db/browse_thread/thread/a29bceea6f9cae18/217e94326653419b?lnk=st&q=internal+OLE+Automation+error+access+update&rnum=4#217e94326653419b

看看这个
[/Quote]
跟这个描述的不大一样,它的方法也没解决这个问题
我这边就那个表带where子句查询的时候报错,而且也就是那个页面报错,其它页面,同样的一张表同样使用conn.execute()执行查询都没报错
数据库反复覆盖N次,改页面代码反复覆盖了N次,依然没法解决问题
Atai-Lu 2008-07-08
  • 打赏
  • 举报
回复
[Quote=引用 27 楼 chinmo 的回复:]
设置 Common Files/ADO 和 WINDOWS/System32 目录的权限为允许 IUSR 可以读和执行。


The solution was not to set permissions for the folder, they were correct.

The solution was to set permissions for Common Files/ADO and
WINDOWS/System32 to allow IUSR to read and execute.
[/Quote]
这个没试过,其它的都试过了
不过估计也难解决,因为其它页面类似的代码都可以正常执行,就那个页面死活都报错
  • 打赏
  • 举报
回复
你把该字段改为字符串行看看是不是没问题
  • 打赏
  • 举报
回复
http://groups.google.com/group/microsoft.public.inetserver.asp.db/browse_thread/thread/a29bceea6f9cae18/217e94326653419b?lnk=st&q=internal+OLE+Automation+error+access+update&rnum=4#217e94326653419b

看看这个
  • 打赏
  • 举报
回复
设置 Common Files/ADO 和 WINDOWS/System32 目录的权限为允许 IUSR 可以读和执行。


The solution was not to set permissions for the folder, they were correct.

The solution was to set permissions for Common Files/ADO and
WINDOWS/System32 to allow IUSR to read and execute.

  • 打赏
  • 举报
回复
set rs = Server.CreateObject("adodb.recordset")
sql="select * from [UserTable] where [Department]="& depar&" order by uid asc"
rs.open sql,conn,1,1
这样也报错????
wcwtitxu 2008-07-07
  • 打赏
  • 举报
回复
以前遇到过,那时候是因为Access里面有几个日文符号
Atai-Lu 2008-07-07
  • 打赏
  • 举报
回复
谢谢各位^_^
Atai-Lu 2008-07-07
  • 打赏
  • 举报
回复
[Quote=引用 22 楼 xuStanly 的回复:]
试试看吧,呵呵,死马当活马医。
[/Quote]
看看再说,明天交辞职报告再来结贴
xuStanly 2008-07-07
  • 打赏
  • 举报
回复
试试看吧,呵呵,死马当活马医。
xuStanly 2008-07-07
  • 打赏
  • 举报
回复
给服务器装script5.7看看。
Atai-Lu 2008-07-07
  • 打赏
  • 举报
回复
我觉得,还是服务器的问题,因为我们公司的电脑都可以正常运行,就那台破服务器有问题
别的远程服务器也没问题,郁闷了
Atai-Lu 2008-07-07
  • 打赏
  • 举报
回复
也不是这个问题哦

哎,真奇怪了...
xuStanly 2008-07-07
  • 打赏
  • 举报
回复
估计是select *的字段里面有一些字符有问题
http://my.vicn.com/article.asp?id=122
看是不是这个问题。
Atai-Lu 2008-07-07
  • 打赏
  • 举报
回复
access数据库
sql="select * from [UserTable] where [Department]=1"'& depar
有错
加载更多回复(15)
vf6.0,要考二级没系统的下哈 Microsoft Visual FoxPro 6.0 for Windows 的常见问题 这些是有关 Microsoft Visual FoxPro 最常见的问题。在您求助 Microsoft 产品支持服务之前,请先查阅这张列表。 若想打印这些附注,请从“文件”菜单中选择“打印”命令。此文档分为以下四部分: --------------------------------------------------------------------- 部分 1. 技术支持与市场 部分 2. Visual FoxPro 6.0 新增功能 部分 3. 从其他版本的 FoxPro 和 Visual FoxPro 中移植 部分 4. Visual FoxPro 常见问题 --------------------------------------------------------------------- 部分 1. 技术支持与市场 问题 1-1: 从何处可以获得产品的更新版本? 答案: 在 Visual FoxPro 的 Web 站点上即可获得产品的更新信息,其中包括有关 Service Pack 和更新的示例、向导及其他代码的信息,该站点的网址为: www.microsoft.com/vfoxpro 请定期查看该网站,以便下载产品的最新版本。 问题 1-2: 从何处可以得到有关 Visual FoxPro 的详细资料? 答案: 通过 Microsoft Visual FoxPro Web 站点是随时获得各种最新产品发布信息的最佳途径。在此站点上不仅有新的产品公告,而且还提供了产品的更新信息、技术文章、白皮书、专业开发人员设计的优秀示例、会议公告、以及与其他许多 FoxPro web 站点的各种链接。 问题 1-3: 如何获得技术支持,以及如何报告软件错误? 答案: Microsoft Visual FoxPro Web 站点已经链接到了多种联机支持选项,其中包括覆盖面广阔的有关所有产品 Microsoft Knowledge Base(Microsoft 知识库)。您还可以阅读一份有关常见问题的清单。除联机支持之外,还可以直接通过电话获得技术支持。“帮助”菜单中的选项可列出技术支持的电话号码。这些电话号码也可用于报告产品中的错误。 问题 1-4. 什么是 Knowledge Base?如何使用它? 答案: Knowledge Base 是内容广泛的论文集,覆盖了如何使用产品的各种特性、已知的软件错误及其解决方案或回避的方法、以及其他有助于使用各种 Microsoft 产品的有用信息。通过以下站点可访问整个 Knowledge Base: support.microsoft.com 问题 1-5: 是否会有 Visual FoxPro 6.0a? 答案: Microsoft 公司一向承诺为用户提供高质量的产品。如果确实需要,我们将提供 Visual FoxPro 6.0 的错误修订版。但是,修订版不会使用 6.0a 版的形式。Visual FoxPro 6.0 中任何错误的修正都将包含在 Visual Studio Service Pack 中。同时还会在 Visual FoxPro 的 www.microsoft.com/vfoxpro 或 Visual Studio 的www.microsoft.com/vstudio 的 Web 站点上发布修订公告。 问题 1-6: Microsoft 公司为应用程序的开发提供了一些优秀的解决方案。怎样才能知道应该向客户推荐和使用哪种产品? 答案: 在选择适用某项任务的产品时,需要考虑多方面的因素。Microsoft Visual FoxPro web 站点上有一份优秀的策略背景论文,它比较了 Visual FoxPro、Visual Basic、SQL Server 和 Access 等 Microsoft 产品之间的不同。 问题 1-7: 哪里可以找到 Visual FoxPro 的使用示例? 答案: Visual FoxPro 6.0 产品中带有丰富的示例,其中有一些是针对 6.0 版特有功能的新示例。与 Visual FoxPro 以前的版本不同,这些示例将与所有 Visual Studio 示例安装在一起。您必须运行 MSDN Library 的“自定义”安装来安装这些示例。在 Visual FoxPro 中可使用新的 HOME(2) 函数方便地找到已安装示例的位置。 除了产品中所自带的示例外,Microsoft Visual FoxPro web 站点还将经常提供新的示例。

28,391

社区成员

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

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