How to build TempdB smaller

  • Maybe I'm getting old - I have inherited a server that has TempDB set to 10,240K I have 16 procs and not enough space to make 15 additional f10,240k files.

    Question how do I reduce the first tempdb.mdf to 512k? Shrinkfile can go below but the minute you restart SQL it recreated the first file at 10,240K.


    John Zacharkan

  • stunned -

    dbcc shrinkfile (1, 1)

    ALTER DATABASE tempdb MODIFY FILE

    (NAME=N'tempdev' ,

    SIZE = 128MB,

    FILEGROWTH = 0)

    Stop SQL

    Start SQL

    still 128mb that works.


    John Zacharkan

  • Tempdb is created from the model db which by default is 0.75MB. I don't see a way to shrink it to 512KB.

  • yeah those were supposed to be mb i was just typing it out


    John Zacharkan

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

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