UPDATE STATS script

  • Hi,

    Can someone provide me with a script which will run UPDATE STATISTICS on all tables of all DBs?

    I think, this can be used to update stats for all tables in a DB. But I am not sure how the table argument will be passed , which i have marked with '?'

    EXEC sp_MSForEachTable "update statistics'?'"

    Any help is really appreciated...

    Thnx

    Manu

  • I think sp_updatetstats will update stats for all tables in a db;

    Still, if some one can help me to find a script for all tables in all DBs, that would be great!

    Thnx

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply