B
Brad Williams
In the .NET Data Access Architecture Guide, under Performing Database
Updates with DataSets | Managing Concurrency, it says there are four main
approaches to manage optimistic concurrency when updating through a DataSet:
1. Including only the primary key columns
2. Including all columns in the WHERE clause
3. Including unique key columns and the timestamp columns
4. Including unique key columns and the modified columns
Then it goes on to say that 1, 2, and 4 are not recommended -- even though 2
is the default behavior of the Data Adapter Configuration Wizard, and 3 is
NOT supported by the Data Adapter Configuration Wizard. I think "ironic" is
the applicable word here.
What is a good way to implement optimistic concurrency, then? Is everyone
putting a timestamp column in the tables, and leaving the Data Adapter
Configuration Wizard to RAD hackers? ;-)
Brad Williams
Updates with DataSets | Managing Concurrency, it says there are four main
approaches to manage optimistic concurrency when updating through a DataSet:
1. Including only the primary key columns
2. Including all columns in the WHERE clause
3. Including unique key columns and the timestamp columns
4. Including unique key columns and the modified columns
Then it goes on to say that 1, 2, and 4 are not recommended -- even though 2
is the default behavior of the Data Adapter Configuration Wizard, and 3 is
NOT supported by the Data Adapter Configuration Wizard. I think "ironic" is
the applicable word here.
What is a good way to implement optimistic concurrency, then? Is everyone
putting a timestamp column in the tables, and leaving the Data Adapter
Configuration Wizard to RAD hackers? ;-)
Brad Williams