BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BIG BUG in Deleting detali records

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Cavalera Guido
Guest





PostPosted: Sun May 20, 2007 9:18 pm    Post subject: BIG BUG in Deleting detali records Reply with 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 ?

Bye Guido



Soluzioni Software di Gestione Aziendale
www.OnAzienda.it
Back to top
Brian Bushay TeamB
Guest





PostPosted: Mon May 21, 2007 7:49 am    Post subject: Re: BIG BUG in Deleting detali records Reply with quote



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





PostPosted: Mon May 21, 2007 8:11 am    Post subject: Re: BIG BUG in Deleting detali records Reply with quote



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





PostPosted: Mon May 21, 2007 7:54 pm    Post subject: Re: BIG BUG in Deleting detali records Reply with quote

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





PostPosted: Tue May 22, 2007 7:59 am    Post subject: Re: BIG BUG in Deleting detali records Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.