John Sansom SQL Server DBA in the UK

SQL Server DBA Blog, with straightforward advice, quality resources and musings about SQL Server

  • Home
  • About me
  • Books
  • How to Become a SQL Server DBA
  • Popular Posts
  • SQL Server Resources
  • UK SQL Server Events

Simplify Your DBCC CHECKDB Output

Jul 14th, 2010
by John Sansom.

Defend Your Data

"Defend Your Data"

If you’re a SQL Server Database Administrator and you don’t know what CHECKDB is then you need to stop whatever it is your are doing right now and read this. Seriously, just go ahead and do it now. It will only take you ten minutes to get to grips with the basics and it could save not only your job but also the company you work for. CHECKDB is arguably the most valuable tool in the DBA toolkit and you would be a fool to miss it.

Now as I’m sure you already know, when you perform a DBCC CHECKDB operation, by default you will be provided with a considerable amount of informational output, not all of which you may be interested in.

If like me, you like to make life easy for yourself and you are really only interested in output pertaining to any errors that have been found, then you will pleased to hear of the handy argument NO_INFOMSGS available to you (see example below). Using this argument with your CHECKDB operations will suppress “informational only” output, leaving you in a position to more easily identify any errors that may have been reported.

DBCC CHECKDB(‘DatabaseName’) WITH NO_INFOMSGS, ALL_ERRORMSGS

Note: Technically you do not need to use the ALL_ERRORMSGS argument for errors to be displayed in the more recent versions of SQL Server as this is the default behaviour however, if like a lot of DBA’s you manage multiple versions of SQL Server then it’s good practice to include it in order to be absolutely certain you will get the output your desire across the board.

Life’s complicated enough as it is, so let’s keep things simple when we can.

Similar Posts on “keeping things simple” and “looking after your data”

  • DBA Survival Skills – Think Defensively
  • TLC and SQL Server Error Log Management
  • SQL Server Essentials – Part 1: The Database Administrator’s Primary Responsibility
  • SQL Server Essentials – Part 2: Why you should be using the FULL Recovery Model
← Jump Start Your SQL Server Learning Today (T-SQL Tuesday)
Something for the Weekend – SQL Server links for the week 16/07/10 →
  • Pingback: Tweets that mention Simplify Your DBCC CHECKDB Output | John Sansom - SQL Server DBA in the UK -- Topsy.com

  • Pingback: 10 Things Every DBA Should Do | John Sansom - SQL Server DBA in the UK

  • Subscribe to RSS
  • Subscribe by Email
  • Search

  • Categories

    • Administration (54)
      • Disaster Recovery (7)
      • Dynamic Management Views (DMV) (4)
      • Index Optimisation (8)
      • Memory (2)
      • Reporting Services (5)
      • SQL Server Tips (19)
      • Tools (6)
    • Performance Tuning (18)
    • Professional Development (42)
      • Blogging (3)
      • Outstanding DBA Customer Service (5)
    • Query Optimisation (4)
    • SQL Server Community (130)
      • Reviews (1)
    • SQLServerCentral Syndication (65)
    • SQLServerPedia Syndication (63)
  • Archives

    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009

Copyright John Sansom, 2009-2011, all rights reserved.