How can we pass our own SQL Commands within a transaction?

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
User

How can we pass our own SQL Commands within a transaction?

Post by User » Wed 01 Dec 2004 20:54

Hi,

I want to pass some of my own commands to SQL Server with in a transaction how can i do that?

Im using nested datasets in a ClientDataset

eg.
upon ClientDataset.ApplyUpdates
the following happens auto.

begin trans
Insert into Master ....
Insert into Detail ....

if CanSave = False then Rolback // This is not auto

commit

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: How can we pass our own SQL Commands within a transaction?

Post by Ikar » Thu 02 Dec 2004 15:54

Such behavior is impossible using ClientDataSet.

Post Reply