Solved

SQL 2000 Tempdb Filling up Regulary

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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

910 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

23 Experts available now in Live!

Get 1:1 Help Now