UPDATE Table SET Field = Newvalue WHERE TablePk = CurrentPkIn a SP you generally pass all fields as parameters, and are forced to update the whole record. You can use a timestamp to check whether the record has changed in the mean time (correct?) Generally this is done in the way of
UPDATE Table SET Field1 = Value1, Field2 = Value2, .... WHERE TablePk = CurrentPk AND TimeStamp = CurrentTimeStampAnd this statement will fail not update the record when someone else has updated the record meanwhile.
UPDATE Table SET Field = Newvalue WHERE TablePk = CurrentPk AND field = oldvalueAnd if you want to do it the SP way, you could do a:
UPDATE Table SET Field = Newvalue WHERE TablePk = CurrentPk AND timestamp = currenttimestamp = oldvaluePlease tell me what you do ?? and which approach is more flexible ??