 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Cavalera Guido Guest
|
Posted: Tue Apr 10, 2007 10:47 pm Post subject: Deleting detail, master is deleted too ! |
|
|
D2006+ADODataSet+SQLServer
In a master detail relation with transaction and batchoptimistic control,
happen that if i delete a detail record then in UpdateBatch also master
record is deleted from database table but not in a dataset !!!!
Can u help me ?
Best regards GUIDO
--
Soluzioni Software di Gestione Aziendale
www.OnAzienda.it |
|
| Back to top |
|
 |
Arthur Hoornweg Guest
|
Posted: Tue May 01, 2007 1:51 pm Post subject: Re: Deleting detail, master is deleted too ! |
|
|
Cavalera Guido wrote:
| Quote: | D2006+ADODataSet+SQLServer
In a master detail relation with transaction and batchoptimistic control,
happen that if i delete a detail record then in UpdateBatch also master
record is deleted from database table but not in a dataset !!!!
Can u help me ?
Best regards GUIDO
|
Lookup the property "Unique Table" in the ado documentation.
(After opening your dataset, set
MyAdodataset.recordset.properties['Unique Table'].value:='MyDetailTable',
or alternatively: download and use tbetteradodataset instead of
tadodataset. It has a property "unique_table" that does the same.)
--
Arthur Hoornweg
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.) |
|
| Back to top |
|
 |
|
|
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
|
|