Migrating BDE TDBDataset's UpdateMode property to SDAC
Posted: Wed 27 Apr 2011 11:36
In BDE, the dataset components (TQuery, TTable and TStoredProc) have a property called 'UpdateMode'.
This property determines how the Borland Database Engine (BDE) finds records when updating to an SQL database. UpdateMode allows one to specify the criteria to use when locating a record in the dataset for an update query; it specifies whether modified records are located based on all fields (UpdateMode = upWhereAll), on only the key fields (UpdateMode = upWhereKeyOnly), or on the key fields plus the original values of fields that have been modified (UpdateMode = upWhereChanged).
I see from the SDAC documentation that UpdateMode is not a supported property with the SDAC dataset components and that the default behaviour corresponds with the upWhereKeyOnly UpdateMode (on only the key fields).
Could you please inform me how to achieve the upWhereChanged (on the key fields plus the original values of fields that hve been modified) mode using SDAC? I have read something about using CheckRowVersion but am not sure if this will achive the same results as upWhereChanged and am not sure hot to implement.
Thank you for your kind assistance.
This property determines how the Borland Database Engine (BDE) finds records when updating to an SQL database. UpdateMode allows one to specify the criteria to use when locating a record in the dataset for an update query; it specifies whether modified records are located based on all fields (UpdateMode = upWhereAll), on only the key fields (UpdateMode = upWhereKeyOnly), or on the key fields plus the original values of fields that have been modified (UpdateMode = upWhereChanged).
I see from the SDAC documentation that UpdateMode is not a supported property with the SDAC dataset components and that the default behaviour corresponds with the upWhereKeyOnly UpdateMode (on only the key fields).
Could you please inform me how to achieve the upWhereChanged (on the key fields plus the original values of fields that hve been modified) mode using SDAC? I have read something about using CheckRowVersion but am not sure if this will achive the same results as upWhereChanged and am not sure hot to implement.
Thank you for your kind assistance.