E
Earl
Using VS2003 and SQL2k.
I've noticed that if I have an expression column (or relation column) added
to the main table, I cannot do an Update without setting the
UpdatedRowSource to either OutputParameters or None. This works fine ... so
long as we do not execute two Updates in the same row, one after the other.
This causes a concurrency error.
I understand the general idea behind concurrency and the raft of issues that
can cause a "concurrency error" (did I mention that ADO.Net is SUPERB at
spitting out "concurrency errors" if you even look at the IDE wrong, but I
digress). In any event, my stored procedure doing the update returns a fresh
set of data after said update.
Okay, playing around with this a bit, I find that using the UpdatedRowSource
set to FirstReturnedRecord prevents concurrency errors when editing twice in
the same row, but of course, we would now have a concurrency error with the
expression column. So what gives? Is there a reasonable solution?
I've noticed that if I have an expression column (or relation column) added
to the main table, I cannot do an Update without setting the
UpdatedRowSource to either OutputParameters or None. This works fine ... so
long as we do not execute two Updates in the same row, one after the other.
This causes a concurrency error.
I understand the general idea behind concurrency and the raft of issues that
can cause a "concurrency error" (did I mention that ADO.Net is SUPERB at
spitting out "concurrency errors" if you even look at the IDE wrong, but I
digress). In any event, my stored procedure doing the update returns a fresh
set of data after said update.
Okay, playing around with this a bit, I find that using the UpdatedRowSource
set to FirstReturnedRecord prevents concurrency errors when editing twice in
the same row, but of course, we would now have a concurrency error with the
expression column. So what gives? Is there a reasonable solution?