(snip)
I was under the mistaken impression that Execute never
generated an error without dbFailOnError. But, now that I
try it, I get an error if the query can not even start
executing such as an invalid SQL statement, nonexistent
table, etc. Makes sense now and I'm glad Dirk has us
straightened out now ;-)
I believe the full affects of dbfailonerror, are not well understood.
Say you execute an action query that tries to update several records. Say
that some of those records can be updated, but some of them can not (eg. due
to duplicate keys).
o WITH dbfailonerror, the action query terminates as soon as any row can
not be updated.
o WITHOUT dbfailonerror, the action query continues regardless, updating
those records that it can update, & silently ignoring the ones that it
can't.
In A97 & later, the action query IS NOT wrapped in an implicit transaction.
So, if any records WERE updated, those records will REMAIN updated,
regardless of whether dbfailonerror was used, or not.
Not trying to SHOUT - just a few too many emphases to do >like this<.
Apologies if this is all old news to everyone
TC