sql solace
Saturday, 20 November 2010
Updating Statistics Manually
To update statistics manually -
exec sp_updatestats
Without parameters this updates all statistics in current database.
Run in all databases like this -
exec sp_MSForeachdb 'use [?];exec sp_updatestats'
Indexed views
sp_updatestats does not update indexed view stats
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment