Re: deleting detail record
- From: "Dominic" <dommyd2@xxxxxxxxxxxx>
- Date: Thu, 12 Apr 2007 11:12:04 +0930
You need to call ApplyUpdates in reverse order.
You need to call ApplyUpdates for the Detail Dataset first and then for the
master dataset.
I think once you applyupdates for the master it must do something to the
detail datasetto cancel the batch update or something, because I had the
exact same problem until I reversed the order.
"CC" <dontbother@xxxxxxxxxxxxxx> wrote in message
news:2f8q135ungsk9g766qo1m1ihi5mm0ftd6b@xxxxxxxxxx
On Wed, 11 Apr 2007 10:12:13 +0200, "Cavalera Guido"records
<cavaleraguido@xxxxxxxxxxxx> wrote:
excuse me i think i must explaining better the problem :
when i delete a master record in M/D relation first i delete datail
datasetand then master ! Ok ....When i do UpdateBact in a master and detail
only master record is really deleted on the database but detail NO !!!
This is an adodataset bug i think ! have u solved that ?
You might want to set the relationship of the tables to "cascading
deletes". That way, whenever you delete a master record, the SQL
server does the detail deletes for you automatically.
You set this in the RI (relational integrity) section.
.
- References:
- deleting detail record
- From: Cavalera Guido
- Re: deleting detail record
- From: Brian Bushay TeamB
- Re: deleting detail record
- From: Cavalera Guido
- Re: deleting detail record
- From: CC
- deleting detail record
- Prev by Date: Error when I try to set Filter property to a date
- Next by Date: Re: deleting detail record
- Previous by thread: Re: deleting detail record
- Next by thread: Re: deleting detail record
- Index(es):
Relevant Pages
|
|