I\'m trying to translate this simple sql statement into sp_executesql, because the table name is variable:
UPDATE @TableName SET @i = RowNumber = @i + 1