O
Oenone
I'm working on a VB.NET app which uses ADO.NET to interact with a database.
Currently I have a problem with concurrent updates due to the optimistic
locking used by ADO.NET. I wish to be able to modify the data updates so
that they only check the Primary Key columns when updating the database (as
described in option 1 here:
http://www.eggheadcafe.com/articles/20050719.asp) in order to get "last
write wins" functionality, instead of checking all of the data columns (as
ADO.NET appears to do by default).
Is there a property of the DataAdapter or Command objects that I can modify
to implement this? Or do I have to build the Command SQL myself?
My thanks in advance,
Currently I have a problem with concurrent updates due to the optimistic
locking used by ADO.NET. I wish to be able to modify the data updates so
that they only check the Primary Key columns when updating the database (as
described in option 1 here:
http://www.eggheadcafe.com/articles/20050719.asp) in order to get "last
write wins" functionality, instead of checking all of the data columns (as
ADO.NET appears to do by default).
Is there a property of the DataAdapter or Command objects that I can modify
to implement this? Or do I have to build the Command SQL myself?
My thanks in advance,