every updated record must have different value by using a procedure
the procedure returns single integer value
declare @value int;
exec @value = get_proc param;
update table1 set field1 = @value;
this will work for one record but i want the procedure to get new value for each record
Just a quick example of how to use a TVF to perform this type of update:
Results:
Now an update that uses the same information:
Results: