Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Strategies
»
How disable DBCC CHEKCDB command
20 posts, Page 1 of 2
1
2
»»
How disable DBCC CHEKCDB command
Rate Topic
Display Mode
Topic Options
Author
Message
wolf_Ste
wolf_Ste
Posted Wednesday, February 02, 2011 3:48 PM
Forum Newbie
Group: General Forum Members
Last Login: Monday, June 03, 2013 4:00 PM
Points: 3,
Visits: 123
Hi,
For error someone run DBCC CHECKDB in production database, now i want disable or cancel this command for prevent this errors on future.
Thanks
Post #1057724
GilaMonster
GilaMonster
Posted Wednesday, February 02, 2011 4:44 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:31 PM
Points: 38,091,
Visits: 30,386
CheckDB runs database integrity checks. Nothing else. It doesn't cause errors. It should be run regularly to make sure that things aren't broken.
Regardless, there's nothing to disable, checkDB runs when someone runs it or when a job runs it. It does not run automatically.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1057747
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Wednesday, February 02, 2011 6:11 PM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 5:09 AM
Points: 31,526,
Visits: 13,864
DBCC CHECKDB -
http://msdn.microsoft.com/en-US/library/ms176064%28v=SQL.90%29.aspx
As Gail mentioned, this doesn't cause errors.
Disabling it, even if allowed, doesn't make sense. Why would you not want to know about potential problems in the database?
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #1057768
wolf_Ste
wolf_Ste
Posted Thursday, February 17, 2011 5:15 PM
Forum Newbie
Group: General Forum Members
Last Login: Monday, June 03, 2013 4:00 PM
Points: 3,
Visits: 123
I want disable dbcc checkdb because my database have 4TB, and then take long time for this commnad to end (around 16h hours).
We have many maintenance plans and jobs and in some cases is confuse for the operators.
Is posible disable?
Post #1066084
GilaMonster
GilaMonster
Posted Friday, February 18, 2011 2:43 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:31 PM
Points: 38,091,
Visits: 30,386
Sure, find the job/maint plan that runs it and disable that job. CheckDB does not run automatically. There is a job or maintenance plan that runs it.
However, that is really bad practice and not a solution. You need to be running checkDB somehow so that you can detect corruption before it affects the users, before it becomes irreparable. For some ideas for checkDB on very large databases see -
http://sqlskills.com/BLOGS/PAUL/post/CHECKDB-From-Every-Angle-Consistency-Checking-Options-for-a-VLDB.aspx
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1066217
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Monday, February 21, 2011 9:00 AM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 5:09 AM
Points: 31,526,
Visits: 13,864
You need to run checkdb periodically. It is the only way you will detect corruption and the sooner you can detect it, the better.
If it's a burden on the primary server, then restore on a secondary server and run it there. If you don't have 4TB, consider purchasing Red Gate's Virtual Restore, and running it on a server that uses a virtual restore. You need to run checkdb.
Disclosure: I work for Red Gate.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #1067151
eric.lyons
eric.lyons
Posted Tuesday, August 28, 2012 1:54 PM
Valued Member
Group: General Forum Members
Last Login: Friday, September 07, 2012 8:27 AM
Points: 68,
Visits: 284
dbcc checkdb runs on startup. This is an issue for any VLDB. It particularly is bad for mirroring and cluster failovers.
*****
Give a man a fish, and you've given him a meal. Teach a man to fish and he'll ask to borrow your boat.
Post #1351229
Lynn Pettis
Lynn Pettis
Posted Tuesday, August 28, 2012 2:00 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
eric.lyons (8/28/2012)
dbcc checkdb runs on startup. This is an issue for any VLDB. It particularly is bad for mirroring and cluster failovers.
Not that I am aware of.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1351234
eric.lyons
eric.lyons
Posted Tuesday, August 28, 2012 2:02 PM
Valued Member
Group: General Forum Members
Last Login: Friday, September 07, 2012 8:27 AM
Points: 68,
Visits: 284
Check your log file.
*****
Give a man a fish, and you've given him a meal. Teach a man to fish and he'll ask to borrow your boat.
Post #1351235
Lynn Pettis
Lynn Pettis
Posted Tuesday, August 28, 2012 2:08 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
eric.lyons (8/28/2012)
Check your log file.
I have, not a peep. Haven't seen DBCC CHECKDB run on any of my servers without me running it, and I have been working with SQL Server for 15 years.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1351238
« Prev Topic
|
Next Topic »
20 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.