kodaksmile
MIS
Just a quick question - In sql 7 is there a difference between running sp_updatestats and a stored procedure that loops through all tables in the database and runs update statistics full scan?
Thanks
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
As you can see there is no reason to run a procedure that will loop through. Also if you specify with full scan it could take a long time to run depending on the size of your database.sp_updatestats effectively executes UPDATE STATISTICS, by specifying the ALL keyword, against all user-defined and internal tables in the database. sp_updatestats displays messages that indicate its progress. When the update is completed, it reports that statistics have been updated for all tables. Statistics on disabled nonclustered indexes are also updated by sp_updatestats. sp_updatestats ignores tables with a disabled clustered index