|
技术资料 > ASP技术 > XML相关 : 在ASP中判断SQL语句是否执行成功 |
在ASP中判断SQL语句是否执行成功 March 25,2004 |
利用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 |
|
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved