http://www.sqlservercentral.com/blogs/steve_jones/2011/05/26/no-shrink_2D00_y-tempdb/

Printed 2014/08/30 06:29AM

No Shrink-y Tempdb

By Steve Jones, 2011/05/26

I caught the end of a Twitter conversation the other day between Wes Brown (Blog | @WesBrownSQL), Paul Randal (blog | @PaulRandal), and Aaron Bertrand (blog | @aaronbertrand) talking about shrinking tempdb and the potential issues.

I’ve never thought about it before, but someone investigated and the question popped up on Twitter. Nioholas Cain (blog | @SirSQL) wrote a nice blog post on the events, and it explains how he came to the question (a full disk).

The short answer is that you can cause corruption in tempdb if there is activity taking place when you shrink.

So don’t shrink tempdb!

At least not without quiescing SQL Server. If you don’t know what that means, don’t shrink tempdb on your active server. In case you don’t know, it means allowing active connections to drain off and not allowing new ones. There’s a KB article on this.


Filed under: Blog Tagged: sql server, syndicated
Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.