110 pts.
 Controlling tempdb Growth
I have a user running a SAS job that kicks tempdb from 8.5M to 6.6Gig in less than ten minutes.

tempdb is on the default C: partition, which is only 16G (I have no control over that ridiculous size)! I’m new at this so I’m thinking my only option is to MOVE tempdb because of the space restriction.

Is it OK to move tempdb to another drive and leave the other SYSTEM databases on C: or should I move them all? Any and ALL advice is greatly appreciated.



Software/Hardware used:
SQL Server 2005 on Windows 2003 Server
ASKED: September 11, 2009  2:22 PM
UPDATED: September 11, 2009  10:18 PM

Answer Wiki:
You should move the tempdb to another drive which has enough space. You can move the tempdb database without issue. Moving the tempdb database is actually very easy. <pre>ALTER DATABASE tempdb MODIFY FILE (name='tempdev', filename='D:PathToWhereItWillBetempdev.mdf') GO ALTER DATABASE tempdb MODIFY FILE (name='templog', filename='D:PathToWhereItWillBetemplog.ldf') GO</pre> Just change the drive letters and paths to be where you want to put the files. After you run that (make sure that the folders are correct and exist) then restart the SQL Service. When SQL restarts the SQL Server will create the tempdb in the new location and you can delete the old files.
Last Wiki Answer Submitted:  September 11, 2009  10:18 pm  by  Denny Cherry   64,550 pts.
All Answer Wiki Contributors:  Denny Cherry   64,550 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _