Thanks for your interest in my problem.
Your proposition is near the final solution.
But when I execute this query, the name of the indexes who are not in sys.sysobjects is returned with NULL value. (b.name field = NULL)
So the
the query to rebuild the indexes can't work with @name_index=NULL
ALTER INDEX ' + @name_index + ' ON ' + @pre_name_table + '.' + @name_table + ' REORGANIZE WITH (LOB_COMPACTION=ON)'
...:crying: