46Gb Tempdb does not want to shrink!

  • Hi All,

    somehow we have been lumbered with a 46Gb Tempdb. I am not sure how this happened but first priorityu is to get it down without rebooting the server. I have tried all sorts of ways of shrinking files but they do not seem to want to work, even though there is only about 112 Kb used.

    Any hints or tips are welcome!

    Thanks!

    Dries

  • If its not set to "simple" recovery mode already, try setting the tempDB to that and then try the shrink again.

  • Make sure to kill any transactions using TEMPDB or wait until they're finished.

    Then run this:

     use TEMPDB

      dbcc shrinkfile (TEMPDEV, 1000)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply