教室环境空气品质调研:ASP问题:POST Data:错误 '80020009' 发生意外.。在线等答案

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 15:48:43
原码:Sql = "insert into SDFD(smaxname,goodname,gtype,smax,stype,ttype,sl,province,city,newold,fp,price,yxq,goodpic,info,fuyan) values('" & smaxname & "','" & goodname & "','" & gtype & "','" & smax & "','" & stype & "','" & ttype & "','" & sl & "','" & province & "','" & city & "','" & newold & "','" & fp & "','" & price & "','" & yxq & "','" & goodpic & "','" & info & "','"&fuyan&"')"

conn.execute(sql)
counts = counts + 1

出错如下:
无法显示网页
试图访问的网页出现问题,无法显示。

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

请尝试执行下列操作:

单击刷新按钮,或稍后重试。

打开 localhost 主页,然后查找与所需信息相关的链接。
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

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

技术信息(用于支持人员)

错误类型:
Microsoft JET Database Engine (0x80040E07)
标准表达式中数据类型不匹配。
/smax/vipks/BUY_FBBBIN.ASP, 第 62 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; TencentTraveler ; Alexa Toolbar)

网页:
POST 8192 ??? /smax/vipks/BUY_FBBBIN.ASP

POST Data:
错误 '80020009'
发生意外。

/iisHelp/common/500-100.asp,行 219

数据库里面的某个字段和接收过来的数据类型不一致,建议检查一下你的数据库里面的字段的设置

数据类型错误,
用强制类型转换吧!

意外错误,通常是超出最大长度造成的.查看你的传递数据以及数据库的限定的字段长度.

Sql = "insert into SDFD(smaxname,goodname,gtype,smax,stype,ttype,sl,province,city,newold,fp,price,yxq,goodpic,info,fuyan) values('" & smaxname & "','" & goodname & "','" & gtype & "','" & smax & "','" & stype & "','" & ttype & "','" & sl & "','" & province & "','" & city & "','" & newold & "','" & fp & "','" & price & "','" & yxq & "','" & goodpic & "','" & info & "','"&fuyan&"')"

Response.Write(sql) '----输出该语句,看语法是否有问题, 数据库中字段类型对应是否正确
Response.End

'conn.execute(sql)
'counts = counts + 1