• You can adjust the tempdb file(s) size using the following commands. The changes will be in effect the next time SQL Server starts.

    --EXEC tempdb.sys.sp_helpfile --to list the logical file names, if you need to

    -- names in bold below must be the correct logical names

    -- be sure to specify exactly the same size for all tempdb data files

    ALTER DATABASE tempdb MODIFY FILE ( NAME = tempdev, SIZE = <nnnnnn>KB )

    ALTER DATABASE tempdb MODIFY FILE ( NAME = tempdev2, SIZE = <nnnnnn>KB )

    --...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".