日期:2011-04-16  浏览次数:20984 次

利用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