Hi, I want to update statistics against every table using the for each container. I've dragged the foreach object on to the control flow page and set the enumerator to be for each table and added a variable to capture the table name. I've then dragged the execute SQL task into the middle of the container and edited the SQL statement to UPDATE STATISTICS, then edited the parameter mapping option to contain the variable from the container.
Firstly is this possible? Secondly Is it the best way to accomplish this task? have I gone about this the correct way and how to I actually pass the paramter to UPDATE STATISTICS SQL statement?
Any help would be greatly appreciated
Firstly is this possible? Secondly Is it the best way to accomplish this task? have I gone about this the correct way and how to I actually pass the paramter to UPDATE STATISTICS SQL statement?
Any help would be greatly appreciated