?
Solved

SQL 2000 Tempdb Filling up Regulary

Posted on 2003-11-03
4
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Suggested Courses

771 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