Solved

tempdb space error

Posted on 2000-03-14
2
753 Views
Last Modified: 2008-02-01
I am hitting a new db installation from Delphi 5 through ODBC.

The 13059 error I get comes up when I open a project I moved to a new
computer.  It says:  General SQL error.  [Microsoft][ODBC SQL Server
Driver][SQL Server]Can't allocate space for object '-385' in database
'tempdb' because the 'system segment is full. If you ran out of space in
Syslogs, dump the transaction log. Otherwise, use ALTER DATABASE or
sp_extendsegment to increase the size of the segment.

I am not even using this database as part of my project, but I am not able to make it bigger and truncating it does no good.  Is there a trick here that I am not seeing?

Thanks
Phil
0
Comment
Question by:phillip1
2 Comments
 
LVL 32

Expert Comment

by:bhess1
ID: 2616946
tempdb is a SQL Server internal DB, used for holding temporary tables and other internal purposes by SQL Server (such as temporary tables for Order By clauses)

Try increasing the size of tempdb, or removing the growth restriction (if you set one up for it)

You should also schedule and Shrink Database and Truncate Log activity for the DB on a regular basis.  Enterprise manager makes this simple.


0
 
LVL 8

Accepted Solution

by:
chigrik earned 200 total points
ID: 2617020
Tempdb database is situated on master device by default.
This database contain temporary tables, subqueries and
aggregates with GROUP BY, cursors and so on.
The default size of tempdb is 2 MB. Often it is necessary
to increase this size.

You may remove the tempdb database from master. It is very
good decision for performance and other purposes.

1. Create new device with size of 30-40Mb (tempdev for example)
2. Uncheck "Default device" option for master device.
3. Set "Default device" option for tempdev device.
4. From Enterprise manager (or sp_configure) set tempdb to be in RAM (set value to 1)
5. Stop and restart MSSQLServer service.
6. From Enterprise manager (or sp_configure) set tempdb to not be in RAM (set value to 0)
7. Stop and restart MSSQLServer service.
8. Expand tempdb database to the full size of tempdev device.

Please, be attentive, otherwise you should read the following:
"I've put tempdb in ram and now I can't restart my SQL Server."
http://www.ntfaq.com/ntfaq/sql77.html#sql77

It must helps, if no then read about "Troubleshooting 1105 Error Message"
http://support.microsoft.com/support/SQL/Content/1105err/1105prb.asp?LNG=ENG&SA=PER&FR=0
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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 …
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 …
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…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

743 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

12 Experts available now in Live!

Get 1:1 Help Now