do i have to perform CommitUpdates & RestoreUpdates everytime after Connection.Commit & Connection.Rollback (for example i have 3 dataset component)?
Code: Select all
DataSet.Connection.StartTranscation;
try
DataSet1.ApplyUpdates;
DataSet2.ApplyUpdates;
DataSet3.ApplyUpdates;
DataSet.Connection.Commit;
DataSet1.CommitUpdates;
DataSet2.CommitUpdates;
DataSet3.CommitUpdates;
except
DataSet.Connection.Rollback;
DataSet1.RestoreUpdates;
DataSet2.RestoreUpdates;
DataSet3.RestoreUpdates;
raise;
end;