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.
Author |
Topic |
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2007-02-05 : 17:04:40
|
GurusI have a scenario where the log file of my temp db is too big.What all options are available to me.Please let me knowRegardsNitin |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-02-05 : 17:05:48
|
Have you tried the obvious: shrinking it?Tara Kizer |
 |
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2007-02-05 : 17:21:00
|
Hi TaraThanks for the reply.Can i do it online,will it allow me..Any data loss chances?RegardsNitin |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-02-05 : 17:22:31
|
It will impact users, but there will be no data loss. You should do it during a maintenance window. BTW, you can also just restart the SQL Server service to shrink tempdb down to the same size as the model database. Tempdb is rebuilt during each startup based upon model.Tara Kizer |
 |
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2007-02-05 : 17:30:35
|
Hey TaraThanks a lot for the helpYou rockRegardsNitin |
 |
|
Kristen
Test
22859 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-02-06 : 11:09:28
|
What part do you disagree with me? I only said to do it during a maintenance window and that there would be no data loss. What part is wrong? The thread that you posted is too lengthy for me to find the exact part you are referring to. Tara Kizer |
 |
|
Kristen
Test
22859 Posts |
Posted - 2007-02-06 : 11:38:10
|
I may just have misread what you implied, if so I apologise.The most relevant bits from the linked threads is:http://support.microsoft.com/default.aspx/kb/307487Which says something to the effect that "SQL Server must be started in Single User mode before shrink is used"(Which strikes me as unnecessary - if you stop/start SQL Server to get it into Single User mode isn't the side effect of that going to make a brand new TEMPDB anyway?)And nitin1353 asked "Can i do it online, will it allow me.."You did indeed say it should be done during a maintenance window, but I wasn't sure that nitin1353 read that as "All users offline".I've probably read far too much into everything everyone said!!Kristen |
 |
|
|
|
|