fredintaiwan
14th January 2009, 12:44
Hello Everyone,
Have a query.
What is the difference between Lookup(Restricted) and Restricted(with counter) in the Delete Mode in session Table Definition fields ttadv4122s000?
In my opinion, in Restricted(with counter), a parent record cannot be deleted if any child refers to this parent. A reference counter is checked, which indicates how many child records refer to the parent. With each database action, this counter is checked and updated as necessary. The counter is checked whenever a delete action is initiated on the parent table, and permits the deletion only if the reference counter is equal to zero. Every time a child is added to a parent, the parent's refcntd is incremented. when a child is removed, it is decremented.. When the value is zero, you can delete the parent
In my opinion, in LOOKUP(RESTRICTED), the deletion of the parent is restricted if any child refers to the parent. Upon deletion of the parent, all child tables will be checked. This option is similar to Restricted(with counter), but does not use counters. Lookup (restricted) means that the driver will actually issue a query against the DB on that table to see if the children are present
Also what is the meaning Nullifies option in the Delete Mode.
However i do not understand the difference between the above Restricted(with counter) and LOOKUP(RESTRICTED). Would prefer if you could give me examples for the same explaining the exact application of the same.
Have a query.
What is the difference between Lookup(Restricted) and Restricted(with counter) in the Delete Mode in session Table Definition fields ttadv4122s000?
In my opinion, in Restricted(with counter), a parent record cannot be deleted if any child refers to this parent. A reference counter is checked, which indicates how many child records refer to the parent. With each database action, this counter is checked and updated as necessary. The counter is checked whenever a delete action is initiated on the parent table, and permits the deletion only if the reference counter is equal to zero. Every time a child is added to a parent, the parent's refcntd is incremented. when a child is removed, it is decremented.. When the value is zero, you can delete the parent
In my opinion, in LOOKUP(RESTRICTED), the deletion of the parent is restricted if any child refers to the parent. Upon deletion of the parent, all child tables will be checked. This option is similar to Restricted(with counter), but does not use counters. Lookup (restricted) means that the driver will actually issue a query against the DB on that table to see if the children are present
Also what is the meaning Nullifies option in the Delete Mode.
However i do not understand the difference between the above Restricted(with counter) and LOOKUP(RESTRICTED). Would prefer if you could give me examples for the same explaining the exact application of the same.