Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 can I run DBCC CheckDB while db is online

Author  Topic 

sarahmfr
Posting Yak Master

214 Posts

Posted - 2012-02-14 : 17:32:26
Can I run DBCC checkdb while the db is online and people are accessing the system my database is huge do I need a lot of disk space to do that

Will this help me to find if an index is corrupted.
Thanks

sarah

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-14 : 17:41:00
How big is your database?

Yes you can definitely do this online, however it will use a lot of IO and can/will cause performance issues. The best way to do this is to NOT run this on production, but rather backup/restore to a test system and run CheckDb on the test system instead. We do this with our larger databases and only run CheckDb on production for the system databases and smallish ones.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2012-02-14 : 18:11:08
Is this related to http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=171356 and http://www.sqlservercentral.com/Forums/Topic1252175-1550-1.aspx?

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -