Last active
September 27, 2018 03:40
-
-
Save LetsGoRafting/cb00059660b716827d5aba37e0fd6749 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec sp_MSforeachDB 'DBCC CHECKDB (?) WITH ALL_ERRORMSGS, EXTENDED_LOGICAL_CHECKS, DATA_PURITY' | |
-- full scan for entire db HAS to be done this way | |
EXEC sp_MSForEachTable 'UPDATE STATISTICS ? WITH FULLSCAN;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment