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 2005 Forums
 SQL Server Administration (2005)
 Business hours execution

Author  Topic 

pdset
Constraint Violating Yak Guru

310 Posts

Posted - 2010-01-14 : 18:33:30
Can anyone clarify that during Business hours executing the DBCC CHECKDB and SHRINKING is possible. If so, What are the repurcussions.

Thanks all

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-14 : 20:26:23
Yes it is possible but certainly not advisable. Why are you considering running such heavy IO tasks during business hours?

The repercussions are slow performance and blocking.

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

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

pdset
Constraint Violating Yak Guru

310 Posts

Posted - 2010-01-14 : 22:07:08
Thanks.

Can you expand what kind of Blocking will occur?

Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-01-15 : 03:02:06
Likelihood is that tables will be locked by the CHECKDB task, and updates to the table whilst it is locked will be blocked Q.E.D.

I think that SHRINKING will block all access to the transaction log ... so that will block all inserts / updates

So READS should be OK - might be a bit slower though.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-15 : 16:46:30
Shrink in small increments to reduce the blocking. I only do 50MB-200MB during business hours. I'm able to do a few gigabytes at a time during non-peak hours.

Just watch sp_who2 to see the blocking.

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

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

pdset
Constraint Violating Yak Guru

310 Posts

Posted - 2010-01-17 : 17:50:10
Thanks all It worked for me to ascertain with schedules.
Go to Top of Page
   

- Advertisement -