inicio sindicaci;ón

Microsoft VBScript 运行时错误 (0x800A01A8)

ASP+Oracle的程序,运行时总出现这样的提示:

“Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: ‘Provider=OraOLEDB.Or’”

原程序如下:

emp_name=request.form("emp_name")
p_type=request.form("p_type")
p_description=request.form("p_description")
p_time=request.form("p_time")
exec="insert into service(id, file_number, emp_name, p_type, p_description, p_time, p_status) values ('"&TempID&"', '"&emp_name&"', '"&p_type&"', '"&p_description&"', '"&p_time&"', 'NEW')"
conn.execute exec

修改后的程序如下:

rs.addnew
rs("id")=id
rs("emp_name")=request.form("emp_name")
rs("p_type")=request.form("p_type")
rs("p_description")=request.form("p_description")
rs("p_time")=request.form("p_time")
rs("p_status")="NEW"
rs.update

顺利通过!

可见基本功是多么重要啊,基本功不好只能东抄西抄,等待你的只有无数的错误和BUG!

回复 Trackback


Warning: Undefined variable $tablecomments in /www/wwwroot/wordpress/wp-content/themes/OtherSide/comments.php on line 13

Leave a Reply


Warning: Undefined variable $user_ID in /www/wwwroot/wordpress/wp-content/themes/OtherSide/comments.php on line 93

You must be logged in to post a comment.