【发布时间】:2012-01-04 07:06:58
【问题描述】:
我正在尝试确认实际的 ADODB.Connection.Errors 集合应该如何实际工作。
我目前的解释是,该连接将包含已在该连接上执行的所有过程的所有错误。
所以我应该可以说
on error resume next
... code goes here ... 2 or more command objects execute procedures against the database on the same connection
if con.Errors <> 0 then
loop through all the Errors objects (1 for each procedure that would've been executed on the connection)
end if
但是我已经实现了该基本结构,但我只得到一个错误描述?所以我正在找人来确认是这样的。 Errors 集合是否为多个过程保存多个错误?还是一个程序出现多个错误?
我似乎找不到任何文档可以准确说明在这种情况下会发生什么。
谢谢,
【问题讨论】:
标签: asp-classic adodb