Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
yesterday our TempDB grew pretty quickly and I am guessing that the new programmer wrote a query that went amok (since he came to me for suggestions late in the day). anyway - the size (in mgmt studio - properties for tempdb - many ways to get the information) I see that the Size is 15246.63 MB and the avail is 15215.38 MB - kinda makes sense after seeing that query... now the big question - how do I reclaim some of that 'free space' on the physical drive? I have tried stopping the instance since that use to work with things like this a few sql versions ago - and I have tried the ShinkFile with the truncate option - still same file size --- I am missing something easy and have an opportunity over the weekend to bounce things, but what am I missing?
Ifor
Aged Yak Warrior
700 Posts
Posted - 2014-11-21 : 10:07:03
I would just set the file sizes for tempdb to some sensible values.It is up to you to work out what those values will be.eg