--select * from names
--update names set name = replace(name, 'x', '')

declare @rowCount INT = 0
declare @name varchar(255)

	declare c cursor for
	  select * from names
	  for update

	open c

	fetch c
	into @name

while @@FETCH_STATUS=0
begin
	set @rowCount = @rowCount + 1

	print str(@rowCount) + ' ' +  @name

	update names set name = @name + 'x'
		where current of c

	fetch c
	into @name
end

close c
deallocate c