﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / The Transaction log for the database 'tempdb' is full, please help! / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 09:52:19 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>[quote][b]rahim.shabbir (10/3/2012)[/b][hr]i have a database and a table with 498591 records.I have a sql script which remove duplicates./quote] whenever you are dealing with high volume of data you need to think about batch approach (deals in chunks with data)</description><pubDate>Thu, 11 Oct 2012 01:10:19 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item><item><title>RE: The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>Either you need to rework on your script, something like using table variable that shall take top 5000 records and delete it, put it in a while loop till all records are deleted, it seems that your script is trying to delete all the records in one go forcing tempdb to fill.Else you may want to create another tempdb log file to another drive where ample space is present.</description><pubDate>Fri, 05 Oct 2012 08:01:57 GMT</pubDate><dc:creator>Sameer Kapur</dc:creator></item><item><title>RE: The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>[quote][b]rahim.shabbir (10/3/2012)[/b][hr]The script works as its been tested by our coding department. Is there anything else i can do?[/quote]Obviously your coding department didn't test it for scalability because it's not working for you.  There's likely a "Triangular Join" in the script that's generating billions of internal rows that TempDB is trying to store.Post the code and the table definition (CREATE TABLE) or we just won't be able to help.  I recommend that you take a look at the second link in my signature line to get the best help possible on this problem.</description><pubDate>Wed, 03 Oct 2012 16:07:55 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>The script works as its been tested by our coding department. Is there anything else i can do?</description><pubDate>Wed, 03 Oct 2012 09:36:55 GMT</pubDate><dc:creator>Reemi12</dc:creator></item><item><title>RE: The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>You could post the script - sounds a bit slow-running!</description><pubDate>Wed, 03 Oct 2012 09:17:21 GMT</pubDate><dc:creator>laurie-789651</dc:creator></item><item><title>The Transaction log for the database 'tempdb' is full, please help!</title><link>http://www.sqlservercentral.com/Forums/Topic1367760-149-1.aspx</link><description>Hi,I just started using SQL server management Studio, i have a database and a table with 498591 records.I have a sql script which remove duplicates.Whilst running the script, 2.5 hours later i get a popup saying space on E:\ is running low.At the end it said query completed with errors, "The Transaction log for the database 'tempdb' is full".I checked the E:\ and it was full, only had 10mb available, E:\ is also where the tempdb file was.What would be the best course of action? I assume i need to rerun the script again as there is still 498591 records.</description><pubDate>Wed, 03 Oct 2012 09:03:13 GMT</pubDate><dc:creator>Reemi12</dc:creator></item></channel></rss>