If a create a stored procedure which do a loop on every table of the database and i use the commande DBCC DBREINDEX to reindex each table, is it the good way of reindexing a database.

Thanks