views:

13

answers:

0

I need to perform check table, optimize table and analyze table statements on all tables in a database. And I want to do it inside a stored procedure.

Is it possible?
I can't figure out how to iterate through the table names and then use those names to perform the 3 statements.