?
Solved

tempdb space error

Posted on 2000-03-14
2
Medium Priority
?
770 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
[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
2 Comments
 
LVL 32

Expert Comment

by:Brendt Hess
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 800 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

649 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