Home All Groups Group Topic Archive Search About

Using DBCC Shrinkfile on tempdb



Author
17 Mar 2006 2:41 PM
MACason
Just a quick question. Can DBCC Shrinkfile be used to shrink the tempdb and
if so is there anything I should be aware of when using it on tempdb. We had
a process that grew the tempdb to 77 GB. We think we have a handle on the
problem, but I would like to shrink the tempdb without cycling SQL Server.
Thanks.

Author
17 Mar 2006 3:22 PM
AndyP
Yes, dbcc shrinkfile may be used against tempdb. If you have problems
shrinking a large portion (ie, it seems to never finish), shrink in smaller
increments, such as 5gb at a time. However, if the server is not utilized
very heavily, you should be able to shrink to your original tempdb size with
no problem.

--
AndyP,
Sr. Database Administrator,
MCDBA 2003


Show quoteHide quote
"MACason" wrote:

> Just a quick question. Can DBCC Shrinkfile be used to shrink the tempdb and
> if so is there anything I should be aware of when using it on tempdb. We had
> a process that grew the tempdb to 77 GB. We think we have a handle on the
> problem, but I would like to shrink the tempdb without cycling SQL Server.
> Thanks.

Bookmark and Share