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 2000 Forums
 SQL Server Administration (2000)
 Trucating tempdb

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-06 : 08:08:46
Kelly writes "How can I shrink the size of the tempdb database file? I have already tried right clicking tempdb through enterprise manager and selecting shrink database but this does not shrink the whole tempdb file."

tomy74
Starting Member

32 Posts

Posted - 2005-06-06 : 09:50:57
Hi,
you can shrink the data file by the following command :
DBCC SHRINKDATABASE ...

if your problem from log file use the following command :
DBCC SHRINKFILE ...

if not resized as u which do the following :

So make a full database backup and try to delete the large log file and create a small one with growth option and everything will be fine.

Thanks,

Tarek Ghazali
Go to Top of Page

ptegan
Starting Member

7 Posts

Posted - 2005-06-06 : 10:36:10
I'd guess also that when you start and stop the MSSQL service, tempdb resets itself back to its default size, doesn't it?
Go to Top of Page
   

- Advertisement -