Solved

SQL 2000 Tempdb Filling up Regulary

Posted on 2003-11-03
4
296 Views
Last Modified: 2008-02-26
I am running SQL server 2000 an a windows platform.

Tempdb is on a separate disk, with about 2,5 gigs of space.
There are 9 databases that access tempdb on the server. My problem is that tempdb does not seem to be clearing old transactions.

It gets full almost once every week and I have to restart the server in order to clear tempdb.
Is there anyone who has a solution.
0
Comment
Question by:evansmats
4 Comments
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 200 total points
ID: 9676091
There are may be many reasons why this happens.

This is from MS

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/optimsql/odp_tun_1_5j8l.asp


One that I have found in my environment is:
If stored procedures using temp tables, at the end of stored proc drop temp tables after selecting the result set.

Example (At the end of sp):

select * from #temptable
drop table #temptable

0
 
LVL 34

Expert Comment

by:arbert
ID: 9678667
Also, you don't have to restart the server, you can compress tempdb just like any other database....

Brett
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question