MB Software Solutions <> wrote:
> Stephen the Cook wrote:
>> Tracy Pearson <> wrote:
>>
>>> Are you handling multi-user contentions?
>>> User1 gets data, interrupted by phone
>>> User2 gets data, makes change to field1, saves update
>>> User1 makes change to field2, saves update
>>>
>>> Does User1 save overwrite field1 again?
>>>
>>> Tracy
>>>
>>> -----Original Message-----
>>> From: MB Software Solutions
>>> Sent: Wednesday, March 28, 2007 2:21 PM
>>>
>>> None that stand out in my head at present!
>>>
>>
>> If you are making your update statement in a dynamic way, why not
>> update the columns that changed and your where clause is everything
>> that didn't change.
>>
>>
>> Update ThatTable
>> Set col4= NevVal4
>> , col6 = newVal6
>> Where key = key
>> And col2 = oldVal2
>> And col3 = oldVal3
>> And col5 = oldVal5
>> And col7 = oldVal7
>>
>> KISS at work.
>>
>
> Yep...I've seen code where they construct the UPDATE SQL on the fly
> with that kind of logic.
This way if someone changed col7 on you, your not getting your update to
take. You have to trp for it, but what the heck.
Stephen Russell
DBA / .Net Developer
Memphis TN 38115
901.246-0159
"A good way to judge people is by observing how they treat those who
can do them absolutely no good." ---Unknown
http://spaces.msn.com/members/srussell/
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 3/27/2007
4:38 PM
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.