25112
asked on
occational updateStats failing.
in the nightly maintenance job, the update statistics failed.
specifically on one table.. and Error: 5242 was reported.
this is the second time the same error has happened as part of the UPDATE STATISITICS step in one week (it runs every night).
i ran the update statistics now manually on both tables and they worked fine:
(syntax: UPDATE STATISTICS <tablename> WITH FULLSCAN) )
running DBCC checkdb now returns no error.
http://www.sqlskills.com/blogs/paul/corruption-errors-msg-5242-level-22/ suggests it is surely data corruption.
if it is, why would they work now fine, when run manually?
specifically on one table.. and Error: 5242 was reported.
this is the second time the same error has happened as part of the UPDATE STATISITICS step in one week (it runs every night).
i ran the update statistics now manually on both tables and they worked fine:
(syntax: UPDATE STATISTICS <tablename> WITH FULLSCAN) )
running DBCC checkdb now returns no error.
http://www.sqlskills.com/blogs/paul/corruption-errors-msg-5242-level-22/ suggests it is surely data corruption.
if it is, why would they work now fine, when run manually?
ASKER
it is part of maintenance plan:
The below are the steps covered: (these are run every night together).
Backup
Compress backup
Delete Old Backup file
Database Integrity
Rebuild
Reindex
Update Stats
History Cleanup
The below are the steps covered: (these are run every night together).
Backup
Compress backup
Delete Old Backup file
Database Integrity
Rebuild
Reindex
Update Stats
History Cleanup
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
When do you run Reindexes or Rebuilds?