Solved

SQL 2000 Tempdb Filling up Regulary

Posted on 2003-11-03
4
292 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now