一直在致力于为广安计算机爱好者营造这样一个学习环境:"轻松、高效、实际、体贴"。虽然前路漫漫,但我们在探索着、慢慢成熟着…… 网站首页┊QQ号发布┊软件下载┊游戏外挂┊黑客技术┊广安博客┊交流论坛
设为首页
加入收藏
投稿信箱
网站首页 ┊操作系统 ┊系统集成 ┊程序开发 ┊网页制作 ┊图形图象 ┊安全技术 ┊黑客技术 ┊硬件 DIY ┊业内新闻 ┊广安博客 ┊交流社区
当前位置:广安计算机信息中心 -=> 系统集成 -=> WEB服务器 -=> 正文  
热门文章
 普通文章 Microsoft OLE DB Pr.. 
 普通文章 HTTP错误代码详细介绍.. 
 推荐文章 在Win 2003环境中设置.. 
 普通文章 Microsoft OLE DB Pr.. 
 普通文章 php5正式版安装指南 .. 
 普通文章 Web服务器日志工具点.. 
 普通文章 虚拟服务器实现方法 
 普通文章 如何使您的WEB服务器.. 
 普通文章 优化基于Win 2000的W.. 
 普通文章 服务器配置常用字典 
相关文章
推荐文章
 推荐文章 在Win 2003环境中设置.. 
Microsoft OLE DB Provider for ODBC Drivers 错误 (整合) 【字体:大 中 小】
作者:[Seraphim] 来源:[本站] 浏览:[ ] 评论:[] 
 
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC driver does not support the requested properties.
/tt/showimg.asp,行7
以下是showimg.asp的代码
<%
set connGraph=server.CreateObject("ADODB.connection")
connGraph.ConnectionString="driver={Microsoft Access Driver (*.mdb)};DBQ=" &server.MapPath("images.mdb") & ";uid=;PWD=;"
connGraph.Open
set rec=server.createobject("ADODB.recordset")
strsql="select img from images where id=" & trim(request("id"))
rec.open strsql,connGraph,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rec("img").getChunk(7500000)
rec.close
set rec=nothing
set connGraph=nothing
%>
各位帮忙看看是哪里的问题,谢谢

--------------------------------------------------------------------------------

connGraph.ConnectionString="driver={Microsoft Access Driver (*.mdb)};DBQ=" &server.MapPath("images.mdb") & ";uid=;PWD=;"
没用户名和密码

--------------------------------------------------------------------------------

strsql="select img from images where id=" & trim(request("id"))
仔细查看,是否和数据库表images里的字段不一致,或是id类型问题?

--------------------------------------------------------------------------------

<!--#include file="conn.asp" -->
<%
set rec=Server.createobject("ADODB.recordset")
strsql="select img from product where productid=" & trim(request("productid"))
rec.open strsql,objconn,1,1
Response.ContentType = "img/*"
Response.BinaryWrite rec("img").getChunk(7500000)
rec.close
set rec=nothing
set objconn=nothing
%>

--------------------------------------------------------------------------------

没看出程序有什么问题

--------------------------------------------------------------------------------

[images] 这么看看

--------------------------------------------------------------------------------

看看数据库

--------------------------------------------------------------------------------

rec.open strsql,connGraph

--------------------------------------------------------------------------------

id 是自动编号类型,没看出数据库有什么不对呀?急呀!

--------------------------------------------------------------------------------

其他的字段名字对不对啊?我上午刚碰到这个问题,就是按照如下方法解决的:要把数据库images.mdb当中的表images当中的字段跟程序代码当中提到的字段名严格一致起来。

--------------------------------------------------------------------------------

代码好像没问题啊

--------------------------------------------------------------------------------

是这样,你先测试一下你的库连上了没有,
如果没有,那就解决连库的问题,
否则就看你的SQL语句,
不过看提示好像是连库的问题!
就这样测试下去一步步的缩小错误的范围!

--------------------------------------------------------------------------------

ASP错误大全
对初学者们有帮助,或许高手也会忘记,ASP错误大全
MicrosoftVBScript语*错误(0x800A03E9)-->内存不足
MicrosoftVBScript语*错误(0x800A03EA)-->语*错误
MicrosoftVBScript语*错误(0x800A03EB)-->缺少 ':'
MicrosoftVBScript语*错误(0x800A03ED)-->缺少 '('
MicrosoftVBScript语*错误(0x800A03EE)-->缺少 ')'
MicrosoftVBScript语*错误(0x800A03EF)-->缺少 ']'
MicrosoftVBScript语*错误(0x800A03F2)-->缺少标识符
MicrosoftVBScript语*错误(0x800A03F3)-->缺少 '='
MicrosoftVBScript语*错误(0x800A03F4)-->缺少 'If'
MicrosoftVBScript语*错误(0x800A03F5)-->缺少 'To'
MicrosoftVBScript语*错误(0x800A03F6)-->缺少 'End'
MicrosoftVBScript语*错误(0x800A03F7)-->缺少 'Function'
MicrosoftVBScript语*错误(0x800A03F8)-->缺少 'Sub'
MicrosoftVBScript语*错误(0x800A03F9)-->缺少 'Then'
MicrosoftVBScript语*错误(0x800A03FA)-->缺少 'Wend'
MicrosoftVBScript语*错误(0x800A03FB)-->缺少 'Loop'
MicrosoftVBScript语*错误(0x800A03FC)-->缺少 'Next'
MicrosoftVBScript语*错误(0x800A03FD)-->缺少 'Case'
MicrosoftVBScript语*错误(0x800A03FE)-->缺少 'Select'
MicrosoftVBScript语*错误(0x800A03FF)-->缺少表达式
MicrosoftVBScript语*错误(0x800A0400)-->缺少语句
MicrosoftVBScript语*错误(0x800A0401)-->语句未结束
MicrosoftVBScript语*错误(0x800A0402)-->缺少整型常数
MicrosoftVBScript语*错误(0x800A0403)-->缺少 'While' 或 'Until'
MicrosoftVBScript语*错误(0x800A0404)-->缺少 'While', 'Until' 或语句未结束
MicrosoftVBScript语*错误(0x800A0405)-->缺少 'With'
MicrosoftVBScript语*错误(0x800A0406)-->标识符过长
MicrosoftVBScript语*错误(0x800A0407)-->无效数字
MicrosoftVBScript语*错误(0x800A0408)-->无效字符
MicrosoftVBScript语*错误(0x800A0409)-->未结束的字符串常量
MicrosoftVBScript语*错误(0x800A040A)-->注释未结束
MicrosoftVBScript语*错误(0x800A040D)-->无效使用 'Me' 关键字
MicrosoftVBScript语*错误(0x800A040E)-->'loop' 语句缺少 'do'
MicrosoftVBScript语*错误(0x800A040F)-->无效的 'exit' 语句
MicrosoftVBScript语*错误(0x800A0410)-->循环控制变量 'for' 无效
MicrosoftVBScript语*错误(0x800A0411)-->名称重定义
MicrosoftVBScript语*错误(0x800A0412)-->必须是行中的第一个语句
MicrosoftVBScript语*错误(0x800A0413)-->不能为 non-ByVal 参数赋值
MicrosoftVBScript语*错误(0x800A0414)-->调用子程序时不能使用括号
MicrosoftVBScript语*错误(0x800A0415)-->缺少文字常数
MicrosoftVBScript语*错误(0x800A0416)-->缺少 'In'
MicrosoftVBScript语*错误(0x800A0417)-->缺少 'Class'
MicrosoftVBScript语*错误(0x800A0418)-->必须在一个类的内部定义
MicrosoftVBScript语*错误(0x800A0419)-->在属性声明中缺少 Let , Set 或 Get
MicrosoftVBScript语*错误(0x800A041A)-->缺少 'Property'
MicrosoftVBScript语*错误(0x800A041B)-->在所有属性的规范中,变量的数目必须一致
MicrosoftVBScript语*错误(0x800A041C)-->在一个类中不允许有多个缺省的属性/方*
MicrosoftVBScript语*错误(0x800A041D)-->类的初始化或终止程序没有参数
MicrosoftVBScript语*错误(0x800A041E)-->属性的 set 或 let 必须至少有一个参数
MicrosoftVBScript语*错误(0x800A041F)-->错误的 'Next'
MicrosoftVBScript语*错误(0x800A0420)-->'Default' 只能在 'Property' , 'Function' 或 'Sub' 中指定
MicrosoftVBScript语*错误(0x800A0421)-->指定 'Default' 时必须同时指定 'Public' ")
MicrosoftVBScript语*错误(0x800A0422)-->只能在 Property Get 中指定 'Default'
MicrosoftVBScript 运行时错误(0x800A0005)-->无效的过程调用或参数
MicrosoftVBScript 运行时错误(0x800A0006)-->溢出
MicrosoftVBScript 运行时错误(0x800A0007)-->内存不足
MicrosoftVBScript 运行时错误(0x800A0009)-->下标越界
MicrosoftVBScript 运行时错误(0x800A000A)-->该数组为定长的或临时被锁定
MicrosoftVBScript 运行时错误(0x800A000B)-->被零除
MicrosoftVBScript 运行时错误(0x800A000D)-->类型不匹配
MicrosoftVBScript 运行时错误(0x800A000E)-->字符串空间不够
MicrosoftVBScript 运行时错误(0x800A0011)-->不能执行所需的操作
MicrosoftVBScript 运行时错误(0x800A001C)-->堆栈溢出
MicrosoftVBScript 运行时错误(0x800A0023)-->未定义过程或函数
MicrosoftVBScript 运行时错误(0x800A0030)-->加载 DLL 时出错
MicrosoftVBScript 运行时错误(0x800A0033)-->内部错误
MicrosoftVBScript 运行时错误(0x800A0034)-->错误的文件名或号码
MicrosoftVBScript 运行时错误(0x800A0035)-->文件未找到
MicrosoftVBScript 运行时错误(0x800A0036)-->错误的文件模式
MicrosoftVBScript 运行时错误(0x800A0037)-->文件已经打开
MicrosoftVBScript 运行时错误(0x800A0039)-->设备 I/O 错误
MicrosoftVBScript 运行时错误(0x800A003A)-->文件已存在
MicrosoftVBScript 运行时错误(0x800A003D)-->磁盘已满
MicrosoftVBScript 运行时错误(0x800A003E)-->输入超出了文件尾
MicrosoftVBScript 运行时错误(0x800A0043)-->文件过多
MicrosoftVBScript 运行时错误(0x800A0044)-->设备不可用
MicrosoftVBScript 运行时错误(0x800A0046)-->没有权限
MicrosoftVBScript 运行时错误(0x800A0047)-->磁盘没有准备好
MicrosoftVBScript 运行时错误(0x800A004A)-->重命名时不能带有其他驱动器符号
MicrosoftVBScript 运行时错误(0x800A004B)-->路径/文件访问错误
MicrosoftVBScript 运行时错误(0x800A004C)-->路径未找到
MicrosoftVBScript 运行时错误(0x800A005B)-->对象变量未设置
MicrosoftVBScript 运行时错误(0x800A005C)-->For 循环未初始化
MicrosoftVBScript 运行时错误(0x800A005E)-->无效使用 Null
MicrosoftVBScript 运行时错误(0x800A0142)-->不能创建所需的临时文件
MicrosoftVBScript 运行时错误(0x800A01A8)-->缺少对象
MicrosoftVBScript 运行时错误(0x800A01AD)-->ActiveX 部件不能创建对象
MicrosoftVBScript 运行时错误(0x800A01AE)-->类不能支持 Automation 操作
MicrosoftVBScript 运行时错误(0x800A01B0)-->Automation 操作中文件名或类名未找到
MicrosoftVBScript 运行时错误(0x800A01B6)-->对象不支持此属性或方*
MicrosoftVBScript 运行时错误(0x800A01B8)-->Automation 操作错误
MicrosoftVBScript 运行时错误(0x800A01BD)-->对象不支持此操作
MicrosoftVBScript 运行时错误(0x800A01BE)-->对象不支持已命名参数
MicrosoftVBScript 运行时错误(0x800A01BF)-->对象不支持当前区域设置
MicrosoftVBScript 运行时错误(0x800A01C0)-->未找到已命名参数
MicrosoftVBScript 运行时错误(0x800A01C1)-->参数是必选项
MicrosoftVBScript 运行时错误(0x800A01C2)-->错误的参数个数或无效的参数属性值
MicrosoftVBScript 运行时错误(0x800A01C3)-->对象不是一个集合
MicrosoftVBScript 运行时错误(0x800A01C5)-->未找到指定的 DLL 函数
MicrosoftVBScript 运行时错误(0x800A01C7)-->代码资源锁定错误
MicrosoftVBScript 运行时错误(0x800A01CA)-->变量使用了一个 VBScript 中不支持的 Automation 类型

--------------------------------------------------------------------------------

MicrosoftVBScript 运行时错误(0x800A01CE)-->远程服务器不存在或不可用
MicrosoftVBScript 运行时错误(0x800A01E1)-->无效图片
MicrosoftVBScript 运行时错误(0x800A01F4)-->变量未定义
MicrosoftVBScript 运行时错误(0x800A01F5)-->非*赋值
MicrosoftVBScript 运行时错误(0x800A01F6)-->对象不能安全地使用 Script 编程
MicrosoftVBScript 运行时错误(0x800A01F7)-->对象不能安全初始化
MicrosoftVBScript 运行时错误(0x800A01F8)-->对象不能安全创建
MicrosoftVBScript 运行时错误(0x800A01F9)-->无效的或无资格的引用
MicrosoftVBScript 运行时错误(0x800A01FA)-->类没有被定义
MicrosoftVBScript 运行时错误(0x800A01FB)-->出现一个意外错误
MicrosoftVBScript 运行时错误(0x800A1398)-->缺少常规表达式对象
MicrosoftVBScript 运行时错误(0x800A1399)-->常规表达式语*错误
MicrosoftVBScript 运行时错误(0x800A139A)-->错误的数量词
MicrosoftVBScript 运行时错误(0x800A139B)-->常规表达式中缺少 ']'
MicrosoftVBScript 运行时错误(0x800A139C)-->常规表达式中缺少 ')'
MicrosoftVBScript 运行时错误(0x800A139D)-->字符集越界
MicrosoftVBScript 运行时错误(0x800A802B)-->未找到元素
ActiveServerPages,ASP0126(0x80004005)-->找不到包含文件
MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)-->sql语句出错(字段名错误,或数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E07)-->sql语句出错(要插入或更新的字段的类型与变量数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E57)-->sql语句出错(要插入或更新的数据溢出)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)-->sql语句出错(update字段名或要更新的数据类型错误)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->sql语句出错(要插入或更新的字段的数值不能为空值)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->打开数据库出错,没有在指定目录发现数据库
MicrosoftOLEDBProviderforODBCDrivers(0x80040E37)-->没有发现表
ODBCDrivers(0x80040E21)-->sql语句出错(数据类型不匹配或表/字段错误或处于编辑状态,或不存在于conn打开的数据库中)
ADODB.Recordset(0x800A0BB9)-->sql语句出错(sql语句或conn语句未定义或对一个rs属性进行赋值时发生错误)
ADODB.Recordset(0x800A0CC1)-->rs对像出错(rs对像本身不存在或错误地引用了一个不存在的字段名)
ADODB.Recordset(0x800A0BCD)-->rs对像出错(记录集中没有记录却对记录集进行操作)
ADODB.Recordset(0x800A0E78)-->rs对像出错(记录集不存在,缺少rs.open语句)
ADODB.Recordset(0x800A0CC1)-->rs对像出错(引用了一个不存在的字段名)
ADODB.Recordset(0x800A0E7D)-->conn定义错误
ADODB.Recordset(0x800A0CB3)-->数据库以只读方式打开,无*更新数据
ADODB.Recordset(0x800A000D)-->错误引用rs变量(rs对像已关闭或未定义)]]>
【 打印 】【 收藏 】【 评论 】
评一评(点击可查看更多评论)
 
广告服务

设为首页 - 加入收藏 - 关于我们 - 广告服务 - 版权申明 - 友情链接 - 网站地图