| View previous topic :: View next topic |
| Author |
Message |
Cavalera Guido Guest
|
Posted: Sun May 20, 2007 9:18 pm Post subject: BIG BUG in Deleting detali records |
|
|
D2006+ADODataSet+SQLServer
In a master detail relation with transaction and batchoptimistic control,
happen deleting master record does not delete detail records after
updatebatch ...
This error was solved ?
Bye Guido
Soluzioni Software di Gestione Aziendale
www.OnAzienda.it |
|
| Back to top |
|
 |
Brian Bushay TeamB Guest
|
Posted: Mon May 21, 2007 7:49 am Post subject: Re: BIG BUG in Deleting detali records |
|
|
| Quote: | D2006+ADODataSet+SQLServer
In a master detail relation with transaction and batchoptimistic control,
happen deleting master record does not delete detail records after
updatebatch ...
This error was solved ?
You have to delete the detail records just deleting the master record doesn't |
delete detail records. You could write a trigger on the master table to do
this for you.
In addition if you have your master detail relationship set up to use a
parameter in the SQL statement when you change master records the detail records
will be refreshed. If you have deleted detail records and have not called
updatebatch before changing master records all the deletes will be lost.
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com |
|
| Back to top |
|
 |
Cavalera Guido Guest
|
Posted: Mon May 21, 2007 8:11 am Post subject: Re: BIG BUG in Deleting detali records |
|
|
| Quote: | You have to delete the detail records just deleting the master record
doesn't
delete detail records. You could write a trigger on the master table to
do
this for you.
i dont use trigger ! |
| Quote: | In addition if you have your master detail relationship set up to use a
parameter in the SQL statement when you change master records the detail
records
will be refreshed.
i dont use parameter ! |
| Quote: | If you have deleted detail records and have not called
updatebatch before changing master records all the deletes will be lost.
|
I think the updatebatch work wrong on deleting datil records ... IS A BUG of
adodataset and updatebath mode !
see post : 'deleting detail record' of 10/04/2007 - 23.04
BYE
--
Soluzioni Software di Gestione Aziendale
www.OnAzienda.it
"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> ha scritto nel messaggio
news:rm1253tcgm1nocjld6bruhjjq3p318uifj (AT) 4ax (DOT) com...
| Quote: |
D2006+ADODataSet+SQLServer
In a master detail relation with transaction and batchoptimistic control,
happen deleting master record does not delete detail records after
updatebatch ...
This error was solved ?
You have to delete the detail records just deleting the master record
doesn't
delete detail records. You could write a trigger on the master table to
do
this for you.
In addition if you have your master detail relationship set up to use a
parameter in the SQL statement when you change master records the detail
records
will be refreshed. If you have deleted detail records and have not called
updatebatch before changing master records all the deletes will be lost.
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com |
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Mon May 21, 2007 7:54 pm Post subject: Re: BIG BUG in Deleting detali records |
|
|
Cavalera Guido wrote:
| Quote: | I think the updatebatch work wrong on deleting datil records ... IS A
BUG of adodataset and updatebath mode !
see post : 'deleting detail record' of 10/04/2007 - 23.04
|
If you think it is a bug you are complaining in the wrong place since
ADO is a Microsoft technology. The CodeGear ADO components are just
wrappers around the Microsoft product. Complaining to Microsoft will
not help in all probability since MS has stopped further development of
ADO.
--
Bill Todd (TeamB) |
|
| Back to top |
|
 |
Brian Bushay TeamB Guest
|
Posted: Tue May 22, 2007 7:59 am Post subject: Re: BIG BUG in Deleting detali records |
|
|
| Quote: | You have to delete the detail records just deleting the master record
doesn't
delete detail records. You could write a trigger on the master table to
do
this for you.
i dont use trigger !
In addition if you have your master detail relationship set up to use a
parameter in the SQL statement when you change master records the detail
records
will be refreshed.
i dont use parameter !
If you have deleted detail records and have not called
updatebatch before changing master records all the deletes will be lost.
I think the updatebatch work wrong on deleting datil records ... IS A BUG of
adodataset and updatebath mode !
Since AdoDataset is just calling methods in Microsoft ADO it certainly is not a |
bug in AdoDataset
| Quote: |
see post : 'deleting detail record' of 10/04/2007 - 23.04
Your posts don't make much sense so I can't see going over this again. |
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com |
|
| Back to top |
|
 |
|