Groups | Blog | Home
all groups > sql server (alternate) > june 2004 >

sql server (alternate) : Why the transaction log file full



Daniel Xiao
6/29/2004 3:50:26 AM
I have set the initial size of the log file for a database to 1M, the
maximum size is unrestricted, and the increase rate is 10%.

However, when I attempt to delete thousands of rows, the error is still
reported that the transaction log file is full. Why can't the log file
increase automatically?


*** Sent via Devdex http://www.devdex.com ***
philipyale NO[at]SPAM btopenworld.com
6/29/2004 6:20:21 AM
[quoted text, click to view]

It's probably because the log can't grow quickly enough to keep pace
with the delete operation. The threshold which triggers the "grow
log" action is too close to the physical end of the log file because
the overall log size is so small initially. If you make the log a
decent size to begin with (say, 50Mb), the triggering threshold will
be proportionally further away from the physical end of the file, and
John Bell
6/29/2004 7:29:26 AM
Hi

You don't give the current size of the log file, but at a guess 10% of the
current log files size is larger than the free space on the disk or the
quotas allowed on it.

Log file filling up
http://www.support.microsoft.com/?id=110139

Considerations for Autogrow and AutoShrink
http://www.support.microsoft.com/?id=315512

http://www.mssqlserver.com/faq/logs-shrinklog.asp


Log File Grows too big
http://www.support.microsoft.com/?id=317375


For log file shrinking etc.. check out :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da2_1uzr.asp

and the following KB articles:

INF: How to Shrink the SQL Server 7.0 Transaction Log
http://support.microsoft.com/default.aspx?scid=kb;en-us;256650

INF: Shrinking the Transaction Log in SQL Server 2000 with DBCC SHRINKFILE
http://support.microsoft.com/default.aspx?scid=kb;en-us;272318

John

[quoted text, click to view]

Erland Sommarskog
6/29/2004 7:39:27 AM
Daniel Xiao (xiaodan98@yahoo.com) writes:
[quoted text, click to view]

So what size is your transaction log now?

Even if the maximum size is unrestricted, you can still run out of disk
space. :-(. Say that you log is 1GB, and you have 50 MB free. Then you
will get this message, because there not room for 100 MB.

You may also consider to backup your transaction log to free some space.
Also, what requirements do you have in case of a crash? Is up-to-the
minute recovery essential to you?


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
AddThis Social Bookmark Button