利用err对象: sql="insert into table(f1,f2) values('v1','v2')" conn.execute sql if err.number<0 then response.write "出错了:"& err.description err.clear else response.write "OK" end if
保存为runasp.asp运行。账号密码admin,登陆后输入代码就可执行了!! <% @ LANGUAGE="VBSCRIPT" % <%Option Explicit response.buffer=true dim Spassword,SUserName SUserName="admin" Spassword="admin" dim SQLMutiStr dim i dim action action=request.querystr...