Board index » delphi » ADO not quite clever enough?, please help, urgent
Jonathan Wilson
![]() Delphi Developer |
Tue, 23 Dec 2003 22:39:46 GMT
ADO not quite clever enough?, please help, urgent
I have 3 tables on the server:
TLSCase The second table is and extension of the data in the first table, so Within the DB i've got PK-FK constraints linking TLSCase & Within the ADODataset I have the string: select TLSCaseTraffic.TLSCaseID, UIDCase, TLSCaseTypeID, TLSAspectID, and I have an on before post that makes the TLSCaseTLSCaseID.Value := If I have the PK-FK from TLSCase to TLSCaseTraffic then I can insert a Insert xxxxx INTO TLSCase This is fine, but when I delete the record the SQL sent to the server If I change the PK-FK to be TLSCaseTraffic to TLSCase then inserts I've tried to re-order the SQL in the dataset to see if this somehow The problem is that the ADO is clever enough to break the SQL into 2 Is there any way to give a hint to ADO on which order should be used BeforeDELETE BeforeINSERT I guess the important question is, who handles the seperating of the If the ADO then I guess/hope there is a property for this? If I really have to I can have 3 ADO datasets, one for the SELECT and Jon Integrated 400 Solutions Ltd. Jonathan Wilson, AS/400 consultant/director 24 Hours: 07775 638904 |