If performance is critical, use the SQL CLR to calculate new values. You can simply use the update statement this way. The SQL CLR sets limits on the code you can use, so it may not be easy.
, SQL CLR :
, . :
, , . ID . :
select top 10000 *
from T
where ID > @lastIDProcessed
order by ID
.