请大家帮忙查找一个错误

cyljay 2009-10-06 11:32:04
dim college_pro2_rs3
dim college_pro2_constr3
set college_pro2_rs3=Server.CreateObject("adodb.recordset")
college_pro2_constr3="select * from college where college_id="& rs1("college_id") &""
college_pro2_rs3.open college_pro2_constr3,conn,1,1
if not college_pro2_rs3.eof then
do while not college_pro2_rs3.eof

提示这句有错college_pro2_rs3.open college_pro2_constr3,conn,1,1

Microsoft OLE DB Provider for ODBC Drivers '80040e21'
ODBC 驱动程序不支持所需的属性。
...全文
64 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
cyljay 2009-10-07
  • 打赏
  • 举报
回复
晕,忘记加数据了。
唉~~~~太低级的错误,谢谢大家了。
hookee 2009-10-07
  • 打赏
  • 举报
回复
Response.Write college_pro2_constr3 输出的sql语句拷贝到数据库环境下查询看看对不对
cyljay 2009-10-07
  • 打赏
  • 举报
回复
还是没检查出来
lzp4881 2009-10-07
  • 打赏
  • 举报
回复
报Microsoft OLE DB Provider for ODBC Drivers '80040e21' 错误,应该是:

sql语句出错(数据类型不匹配或表名(字段名)错误或表处于编辑状态,或表不存在于conn打开的数据库中)
hookee 2009-10-06
  • 打赏
  • 举报
回复
Response.Write college_pro2_constr3 输出看下sql语句是否正确?

Response.Write conn.State 看下连接的状态

28,406

社区成员

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

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