I know that Microsoft lists 3 way to shrink a tempdb...
But these aren't working. I don't get errors, but the 2 data files that make up the tempdb don't get smaller. The 2 temp logs are the right size though, so I think I'm doing it right.
Is it that the IIS App's locking the tempdb? It doesn't show anything using the tempdb in 'process info', but since these are system processes I wondered if it would ever show tempdb as being in use.
Method 2 from Microsoft's page above is the method I'm trying...
sp_spaceused @updateusage=true
dbcc shrinkdatabase (tempdb, 5)
Results in....
database_name database_size unallocated space
-------------------------------------------------------------------------------------------------------------------------------- ------------------ ------------------
tempdb 3394.44 MB 3389.63 MB
reserved data index_size unused
------------------ ------------------ ------------------ ------------------
1088 KB 464 KB 448 KB 176 KB
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
But these aren't working. I don't get errors, but the 2 data files that make up the tempdb don't get smaller. The 2 temp logs are the right size though, so I think I'm doing it right.
Is it that the IIS App's locking the tempdb? It doesn't show anything using the tempdb in 'process info', but since these are system processes I wondered if it would ever show tempdb as being in use.
Method 2 from Microsoft's page above is the method I'm trying...
sp_spaceused @updateusage=true
dbcc shrinkdatabase (tempdb, 5)
Results in....
database_name database_size unallocated space
-------------------------------------------------------------------------------------------------------------------------------- ------------------ ------------------
tempdb 3394.44 MB 3389.63 MB
reserved data index_size unused
------------------ ------------------ ------------------ ------------------
1088 KB 464 KB 448 KB 176 KB
DBCC execution completed. If DBCC printed error messages, contact your system administrator.