Join | Login | Why Join?   
SQL Server, Oracle, DB2, Sybase, MySQL Help - SSWUG.ORG HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Search SSWUG:   
 
Access to 522 free guest articles, discussions and more, just create your free SSWUG User ID:
Email address:  
This will be your login ID - we'll email you your password - you'll even receive the newsletter, opt-out at any time.
Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

Full site membership is required for this article. Already a full member? Login here.
You currently have a guest membership. You can upgrade to full site membership here (free trial available).

DBCC Optimization Tips


 Article Abstract:

(Alexander Chigrik) Here are some helpful tips to ensure you optimize the DBCC commands in the most efficient manner possible.

 Read this article...

 Related Articles - For Members.
All Articles By Author

Useful Undocumented Informational SQL Server 2005 DBCC Commands
Some Useful Undocumented SQL Server 7.0 and 2000 DBCC Commands
SQL Server 6.5: Some useful undocumented DBCC commands
Useful Undocumented Maintenance SQL Server 2005 DBCC Commands
Useful Undocumented Miscellaneous SQL Server 2005 DBCC Commands
Using DBCC commands to troubleshoot SQL Server problems
Troubleshooting SQL Server 2005 DBCC commands
Undocumented SQL Server 2005 trace flags
Useful SQL Server 2005 trace flags



Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content


Reader Comments: Post Your Comments/Feedback

RE: DBCC Optimization Tips
(posted: 3/24/2004 7:18:17 PM)
Using DBCC CHECKDB isn't always better than individual DBCC CHECKTABLE statements. If you have a large database (lots of tables and/or large tables), it can take a while to process the command, and you may not want such a performance hit on your server. I'm currently portioning tables out, and running the check on groups of tables at different times, to spread out the load. I'm also running running the checks at different frequencies, depending on the data usage frequency.




RE: DBCC Optimization Tips
(posted: 3/24/2004 7:18:44 PM)
Something else that I've discovered concerning CHECKTABLE and CHECKDB - they can only do repairs if the database is in single user mode, which makes it difficult to automate, and the integrity checks in the Database Maintenance Plans pretty useless, as far as I can tell, unless you have it send you a report every time that you actually look at.




RE: DBCC Optimization Tips
(posted: 3/24/2004 7:18:57 PM)
I'm working on an automated process that will run checks on tables according to a specific schedule, and email a report to the DBAs. That way, when there's a problem, we'll know about it (if we look at the reports), and be able to fix it manually. Hopefully we'll be able to solve problems with some scheduled downtime before we have unscheduled downtime.




Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

   




 

[ Register ] [ Webcasts ] [ Podcasts ] [ Newsletter Archive ] [ RSS/Feeds ]
[ About ] [ Advertise ] [ Contact ] [ Privacy ] [ Terms of Service ]
[ Link to SSWUG ] [ List Server Archives ] [ Recent Orig. Content ]
(c) 1997-2008, Bits on the Wire, Inc.  (0)

Some names and products covered by SSWUG are the registered trademarks of their respective owners.
DAA10354WWW004