(This is a repost from the old forum. I didn't realize there was a new place to post questions. Feel free to delete from either place)
I have a problem related to transactions + RI rules.
I have a master/detail table set up. I have an RI rule set up on these tables to Update/Cascade and Delete/Set Null.
I begin a transaction.
I update a child detail record (to reset default values).
I delete the parent header record.
This causes the following error: QryTemp: Error 7200: AQE Error: State = HY000; NativeError = 5035; [iAnywhere Solutions][Advantage SQL][ASA] Error 5035: The requested lock could not be granted. The file or record may be locked by another user. This record lock was necessary because of a cascaded update or delete due to exising referential integrity rules. Table: \FS01\CON1\STOPS.ADT Record #: 46079
Why is the engine considering the child record locked when both operations happen under the same AdsConnection object, and within the same transaction. This code works fine outside of the transaction.
Thanks for your time, Dusten