dbTalk Databases Forums  

what to do with tempdb and master db

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss what to do with tempdb and master db in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Vardinghus
 
Posts: n/a

Default what to do with tempdb and master db - 07-02-2004 , 02:30 AM






Seem to recall that one of these is used when executing stored procedures -
think it's tempdb. Seems as if this database grows and doens't shrink
automatically - what do i do ... select autoshrink or put a task into my dts
package that truncates the database when my transfer is completed.

Or shouldn't I mess with these..?

Example of tempdb now: 655 size, 1,00 used of database, 0,74 size, 0,49 used
of log

--Michael V.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: what to do with tempdb and master db - 07-02-2004 , 02:45 AM






In message <#Pxd9WAYEHA.4092 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Michael Vardinghus
<michaelvardinghus (AT) notexisting (DOT) com> writes
Quote:
Seem to recall that one of these is used when executing stored procedures -
think it's tempdb. Seems as if this database grows and doens't shrink
automatically - what do i do ... select autoshrink or put a task into my dts
package that truncates the database when my transfer is completed.

Or shouldn't I mess with these..?

Example of tempdb now: 655 size, 1,00 used of database, 0,74 size, 0,49 used
of log

--Michael V.

There is very little that should ever induce master to grow. You
shouldn't be adding objects or storing data inside master.

Depending on what you are doing tempdb can grow quite large, and this is
acceptable. It can be used explicitly as a working area, and will also
be used internally by SQL Server during certain operations. I would not
recommend shrinking tempdb, otherwise next time it requires more space
it will auto-grow again, which is quite an expensive operation, which
will slow down the transaction that requires more space. I'd recommend
that you actually use ALTER DATABASE dbname (file='tempdev',size=xxxx).
This will save auto-growth operations for the reasons above, which at
the very least may happen after every server restart since tempdb is
re-created on restart.

The log file can also grow quite large, but since it uses the Simple
recovery model, it will clear down automatically on checkpoints


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.