Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating Related Tables
Message
From
16/07/1997 16:12:10
 
 
To
16/07/1997 09:38:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00040147
Message ID:
00040295
Views:
29
I agree with Steven adding any filter to the primary index is kinda going against its definistion Arnon > Adding the index is definitely not the solution, nonethelesst an index on > Deleted() is always a good idea. > > > >>>What's the table update error, Lar? > >>> > >>>>I have... > >>>>2 simple related tables > >>>>Using views on both to update. > >>>>Referential integrity on the parent table has deletions cascading to > the child > >>>>SQL send updates to both with delete and insert > >>>>Primary keys on both tables = keyfield for not dele() > >>>> > >>>>The child table updates fine. > >>>> > >>>>Any parent table update results in error. The only thing that I have > been able to guess is that the parent table's delete may be trying to > cascade to the the child. > >>>> > >>>>Is there a way that I can have the parent use the delete and insert > update? I want to be able to see the previous entries. > >>>> > >>>>TIA > >>Index uniqueness violated. I checked all fields and the values are in > fact unique. Other info..the two tables are related thru another field > called orderid...just thought that I might need another index on that one > "for not dele()"...stay tuned...//:^) > >That was it. I needed the "for not dele()" clause on my relation index. > Now the problem is that since I have cascading deletes, the delete and > insert update is deleting my child records, but not adding them back in. > Can I temporarily "turn off" the cascading delete? >
Previous
Reply
Map
View

Click here to load this message in the networking platform