Re: Check database healthiness on a daily basis?

From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/29/04


Date: Thu, 29 Jul 2004 21:34:10 +0530

Hi,

Yes, that will be a better option to check and confirm that your database is
good. DBCC CHECKDB will run for a long time if your database is
big. In that case probably you can do this activity weekly once during non
peak hours (weekends).

Along with this you can also run UPDATE STATISTICS daily on those tables
which have high DML access (Insert/ Update/ Delete).

Monthly once check the fragmentation of table using DBCC
SHOWCONTIG(Table_name), if fragmented you could DBCC REINDEX the table.
THis will remove the fragmentation and increase the performance.

Thanks
Hari
MCDBA

"bing" <bing@discussions.microsoft.com> wrote in message
news:DDCE66EE-CFB0-4C9D-B215-AB7983D4021E@microsoft.com...
> How do people usually do to make sure all the databases are in good
status?
>
> We have about 50 databases. I was intended to write 'dbcc checkdb' for
each one in a T-SQL script and have it run every day. Is there a better way
to do that?
>
> Thanks in advance for any advices.
>
> Bing



Relevant Pages

  • Re: Check database healthiness on a daily basis?
    ... > Thanks so much for your instance response, Hari. ... DBCC CHECKDB will run for a long time if your database is ... >> Monthly once check the fragmentation of table using DBCC ... >> THis will remove the fragmentation and increase the performance. ...
    (microsoft.public.sqlserver.server)
  • Re: Unable to handle database
    ... 5GB database size might not be a problem. ... DBCC SHOWCONTIG to identify thye tables fragmented and use DBCC DBREINDEX to ... remove Fragmentation. ... Check the usage of Transaction log using DBCC SQLPERF. ...
    (microsoft.public.sqlserver.server)
  • Re: Disaster freeing space in 200GB database
    ... Run DBCC UPDATEUSAGE to make sure you are seeing accurate information. ... DBCC SHRINKFILE since it gives me a finer degree of control. ... Senior Database Administrator ... data file increased by the amount of data deleted. ...
    (microsoft.public.sqlserver.server)
  • Re: Checkpoint SPID Blocked
    ... > CheckDB and DBCC Checkalloc didn't turn up any allocation errors. ... really need to run DBCC CHECKDB on this database. ... We have a situation where the checkpoint process ... I'd like the problem to go away for good without requiring a restart ...
    (microsoft.public.sqlserver.server)
  • EXCEPTION_ACCESS_VIOLATION Error
    ... One of our clients is using SQL7/SP4 and their database is working correctly ... DBCC CheckDB at our office produces the following: ... DBCC results for 'JagTrain'. ...
    (microsoft.public.sqlserver.server)

Loading