Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 TempDB Blote problem

Author  Topic 

kirknew2SQL
Posting Yak Master

194 Posts

Posted - 2008-02-08 : 17:53:37

I have had my first experience with shrinking the tempdb by following the procedure in:
http://support.microsoft.com/kb/307487#appliesto

Is there a way to incorporate this procedure or a standard way to schedule a maintenance program that will shrink the TempDB once a month or something?

thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-02-08 : 20:03:14
You should not shrink any databases automatically. If there is a problem with lack of free space, then add additional disk space to support the sizes of the databases that are needed to support your data and queries.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

kirknew2SQL
Posting Yak Master

194 Posts

Posted - 2008-02-10 : 22:50:22
I have been trying to figure out how my tempDB ballooned to over 18G. I think I know why but I want to get expert opinion on my thoughts.

The tempdb database is re-created every time SQL Server starts. On my server SQL Server is a Automatic service. Since the server is never turned off SQL never restarted even though the application is closed every night. Since the tempdb is set to automatically grow it ballooned because the server was never restarted.

does this sound correct?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-02-10 : 23:10:22
Tempdb grows when sqk needs it, just leave it unless you have disk space issue. In that case, better to move it to big disk than shrink it.
Go to Top of Page

kirknew2SQL
Posting Yak Master

194 Posts

Posted - 2008-02-10 : 23:22:04
Yes I it grows when needed. The question is did it get that big because SQL was never restarted?
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2008-02-11 : 01:17:47
Not necessarily, most peoples SQL Servers never restart. It got big because there is something in your application causing that, whether that is something unavoidable, or whether there is something silly going on in your app code (like big global temp tables that never get cleaned up) is impossible to tell from here.

(Also, what's a blote ?)


Damian
"A foolish consistency is the hobgoblin of little minds." - Emerson
Go to Top of Page

kirknew2SQL
Posting Yak Master

194 Posts

Posted - 2008-02-11 : 13:55:40
Sorry that was a typo. Meant 'bloat'
Go to Top of Page
   

- Advertisement -