Re: ADO and DELETE Statement
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Fri, 9 Jun 2006 18:26:37 +0100
Well, I am doing this in Navision (Dynamics-NAV) using the MS ActiveX
Data Access lib. I have looked at all kinds of properties on the
connection object, nothing indicated an error status (same values,
regardless of success or failure).
I dont see how it could.
It is up to the provider to signal to ADO that the SQL has failed in some
way. And if the provider raises no error, how will ADO know? What you can
get back from Action queries is the number of rows affected.
That is one of the parameters of the Command object.
Note also, it is not an error if DELETE failed to delete rows because the
WHERE clause meant no rows qualified.
You also said
It is basically reading a record, posting a purchase order
and if the order posted successfully, I delete the record. So if it is
not deleted (for whatever reason), the purchase receipt is posted
twice.
That last part seems wrong. Why not record on the database that you posted
successfully?
The receipt won't be sent twice as you check for its existence.
You need to get to the bottom of why a small % of deletes fail.
Stephen Howe
.
- Follow-Ups:
- Re: ADO and DELETE Statement
- From: Skeeve
- Re: ADO and DELETE Statement
- References:
- ADO and DELETE Statement
- From: Skeeve
- Re: ADO and DELETE Statement
- From: Richard Mueller
- Re: ADO and DELETE Statement
- From: Skeeve
- ADO and DELETE Statement
- Prev by Date: Re: ADO and DELETE Statement
- Next by Date: Re: ADO and DELETE Statement
- Previous by thread: Re: ADO and DELETE Statement
- Next by thread: Re: ADO and DELETE Statement
- Index(es):
Relevant Pages
|
|