به نظر نمی رسه شما اصلا احتیاچ به استفاد از یک cursor دارید. ببینید آیا کد زیر همان کاری را که می خواهید بکنید انجام نمی دهد:


declare @tbl TABLE (_Bedehkar int , _Bestankar int , _Baghimande int , _Tashkhis TName );

update
@tbl
set
_Baghimande = abs( _Baghimande + (_Bedehkar - _Bedehkar) ),
_Tashkhis = case when _Baghimande + (_Bedehkar - _Bedehkar) < 0 then 0 else 1 end
from
@tbl;