Board index » delphi » Data aware components
Tim
Delphi Developer |
Data aware components2005-10-13 07:03:32 PM delphi80 This isn't a specific problem, more of a general approach issue. Using any of the datasets, be it a SimpleDataset or an SQLQuery with data aware components via DSP, CDS and DataSource, there do seem to be a number of issues with errors such as 'Record not found or changed by another user' or 'Unable to find record. No key specified' which occur when using ApplyUpdates. Now, I have absolutely no doubt that if I was a better programmer with a better understanding of how these components work, I could avoid all of these problems, but the fact remains that I keep coming across issues. However, if I ignore data aware components, set component values programmatically from dataset persistent fields and then insert or update records using an SQL script instead, I get no problems at all. So, is avoiding data aware components a common approach or am I simply making hard work for myself which negates the point of using Delphi for database applications? Thanks. |