Quick DBCC CheckDB question?

  • Hi all

    I testing out DBCC CheckDB on my local machine however when I run it using the simple command

    DBCC CheckDB ('myDB')

    I don't get any messages in the windows event viewer. Do I need to provide some parameters or does it only log error messages?

    I will also want to be able to alert on these messages. One way I have read is to create a job to write to a logfile, then when an error is generated this apparently fails the job on which I can then alert.

    Thanks

  • When you run CHECKDB without any parameters (see here for list) you should get informational messages for each step in the process in the messages tab of SSMS. Something like:

    DBCC results for 'sys.sysrowsetcolumns'.

    There are 693 rows in 7 pages for object "sys.sysrowsetcolumns".

    You should also get a message in the Windows Application Log like this:

    Event Type:Information

    Event Source:MSSQLSERVER

    Event Category:(2)

    Event ID:8957

    Date:1/22/2010

    Time:9:36:39 AM

    User:domain\user_name

    Computer:ComputerName

    Description:

    DBCC CHECKDB (master) executed by found 0 errors and repaired 0 errors. Elapsed time: 0 hours 0 minutes 1 seconds.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply