TempDB Full Problems\Solutions
January 24, 2000
RESOLUTION OF TEMPDB PROBLEM #1
The tempdb is used for creating temporary tables or storing temporary information. For example, a temporary table in a stored procedure or sql statement may create a temporary work table as a result of a query with a 'group by' or 'order by' clause.
My SQL Server (6.5) had Tempdb set to 400 MB and a Tempdb Log set to 100 MB. It also had devices of similar sizes. For my requirements this was a lot of wasted space. Therefore, I decided to shrink Tempdb using two methods of which only one worked.
METHOD 1 SOLUTION
the database to 'single user' mode.
"Attempt to set 'tempdb' database to single user mode failed because the usage count is three. Make sure that no other users are currently using the database."
I then executed the 'sp_who active' command which indicated that the usage count was three because of internal sql server processes running. These internal processes were Mirror Handler, Lazy Writer, Checkpoint Sleep, etc. These processes can not be killed. (I was not able to kill them). Therefore, I performed Method 2.
METHOD 2 SOLUTION
1. Put a
modest size Tempdb into RAM (sp_configure 'temp', 10).