all groups > sql server data warehouse > august 2003 >
You're in the

sql server data warehouse

group:

shrinking TEMPDB



shrinking TEMPDB misheL
8/25/2003 9:20:59 PM
sql server data warehouse: hello guys!

our tempdb is currently 35gig and still growing. we would
like to know the best method to shrink it.

we tried stopping and starting the service, but we can't
really do that whenever a stored proc is running. is there
anyway to reduce it while a stored proc is running?

shrinking TEMPDB chris
8/29/2003 2:15:44 AM
try this

use tempdb
backup log tempdb WITH NO_LOG
dbcc shrinkfile (templog,0)
dbcc shrinkfile (tempdev,0)


templog is the name of log file and tempdev is the name
of the data file. Just check first these names in your
sysfiles.

Regards
[quoted text, click to view]
shrinking TEMPDB mishel
8/29/2003 2:48:37 AM
thanks chris, but that's what we're doing right now. what
i would like to know, if there's a way to shrink the
tempdb while a query is running.

thanks again.

regards,
michelle

[quoted text, click to view]
Re: shrinking TEMPDB Kevin
8/29/2003 3:18:33 PM
Generally heavy TEMPDB use is caused by very large sorts or joins. - check
for appropriate indexing to support the stored procedure.

--
Kevin Connell, MCDBA
--------------------------------------------------
The views expressed here are my own
and not of my employer.
----------------------------------------------------
[quoted text, click to view]

Re: shrinking TEMPDB Rob Anderson
8/29/2003 3:30:26 PM
What is happening in the query that is causing so much disk space to be
eaten up?

[quoted text, click to view]

AddThis Social Bookmark Button