Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2015 November SQL Server: Monitor and Manage Database Corruption

SQL Server: Monitor and Manage Database Corruption

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

In this post, I am going to provide necessary information to monitor and manage Database Corruption of SQL Server.

As we are Database Administrator, so this is our responsibility to find data corruption of the database before it crashes.

You can monitor corrupted database page using one system table of MSDB.
Please execute below statement to find information about corruption.

1
2
SELECT * FROM msdb.dbo.suspect_pages
WHERE (event_type = 1 OR event_type = 2 OR event_type = 3);

This corrupted page logged in different situations.

  • 824 error : Torn pages error.
  • 823 error: Disk or Hardware error.
  • DBCC repaired the page.
  • Bad checksum.
  • DBCC deallocation.
  • Restored Database with Bad marked.

How to deal with this corrupted pages?

The first step, execute DBCC CHECKDB.

1
DBCC CHECKDB () WITH NO_INFOMSGS, ALL_ERRORMSGS

You should check your database backup strategy and recovery model.
If corruption happens and not resolved yet, you can restore a fresh backup.

Another best practice is to take the full database object script for Database structure.
You can also use any other third-party recovery tools.

Nov 6, 2015Anvesh Patel
SQL Server: A Different command to check Basic Security AuditSQL Server: Script to find Missing Indexes
Comments: 1
  1. SIDDHESH SAWANT
    January 6, 2020 at 6:44 am

    Good Practice …
    Need something related default trace file regarding security ..

    like who updated particular table day wise and user wise ..

Anvesh Patel
Anvesh Patel

Database Engineer

November 6, 2015 SQL ServerAnvesh Patel, database, database research and development, DBCC CHECKDB, dbrnd, msdb.dbo.suspect_pages, SQL Query, SQL Server, SQL Server Administrator, SQL Server Monitoring, SQL Server Performance Tunning, SQL Server Tips and Tricks, TSQL
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....