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 shrink

Author  Topic 

amsqlguy
Yak Posting Veteran

89 Posts

Posted - 2008-08-11 : 14:53:59
Guys,

I am trying to shrink tempdb which is up to 100gb by the following command, but it doesnt seem to release unused space.

dbcc shrinkfile (tempDEV, 100)

Also is there any way to find out all open cursors and close them which might also potentially contirbute to tempdb growth

Thanks

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-08-11 : 15:06:44
Also posted here:
[url]http://www.sqlservercentral.com/Forums/Topic550552-146-1.aspx[/url]

--
Gail Shaw
SQL Server MVP
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-11 : 15:10:40

"Also is there any way to find out all open cursors and close them which might also potentially contirbute to tempdb growth"


DBCC Opentran
DBCC inputbuffer<spid>
KIll<spid>
Go to Top of Page
   

- Advertisement -