为何无论set rs=conn.Execute(strSQL)是否出错indication_flag始终等于“mustexist”

jasonwolf 2002-01-10 08:30:09
<%
Set Conn = Server.CreateObject("ADODB.Connection")
CONN.Open application("connstring")
strSQL = "query_cktszml '" & get_entry_id & "','0','0','0','0','0','1'"


on error resume next
set rs=conn.Execute(strSQL)

if err.number<>0 then
indication_flag="notexist"
else
indication_flag="mustexist"
end if
%>
...全文
92 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lanying 2002-01-10
  • 打赏
  • 举报
回复
可能你的query_cktszml是存储过程吧?那应该是这样
strSQL = "exec query_cktszml '" & get_entry_id & "','0','0','0','0','0','1'"
yanghly 2002-01-10
  • 打赏
  • 举报
回复
可能是把!!!
yanghly 2002-01-10
  • 打赏
  • 举报
回复
strSQL = "query_cktszml '" & get_entry_id & "','0','0','0','0','0','1'"
|
strSQL = "query_cktszml , '" & get_entry_id & "','0','0','0','0','0','1'"

28,406

社区成员

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

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