473,382 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Why the transaction log file full

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 ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
3 5217
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/de...r_da2_1uzr.asp

and the following KB articles:

INF: How to Shrink the SQL Server 7.0 Transaction Log
http://support.microsoft.com/default...b;en-us;256650

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

John

"Daniel Xiao" <xi*******@yahoo.com> wrote in message
news:40**********************@news.newsgroups.ws.. .
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 ***
Don't just participate in USENET...get rewarded for it!

Jul 20 '05 #2
Daniel Xiao (xi*******@yahoo.com) writes:
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?


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, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #3
Daniel Xiao <xi*******@yahoo.com> wrote in message news:<40**********************@news.newsgroups.ws> ...
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 ***
Don't just participate in USENET...get rewarded for it!


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
so the log should have time to grow before it actually fills up.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: TZoner | last post by:
1) Can one find the location of the 'Transaction Log' at: <Hard Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf? 2) Is it safe to delete it, as SQL will create a new Transaction...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
3
by: Bucfan1 | last post by:
Hello All, I have been encountering trouble with a SQL Server 2000 Transaction log file, mainly with the constant growth and lack of the autoshrink option. Here are the details: 1.) OS is...
0
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the...
5
by: BashiraInTrouble | last post by:
Hi Friends, I have tried almost everything but I cant seem to shrink the transaction log. Executing DBCC SQLPERF(LOGSPACE) gives me this info: Database Log Size (MB) Log Space Used (%) ...
2
by: francois1 | last post by:
I am running a website with a SQL Server database attached. My transaction logs are full and my hosting co. won't allocate more disk space for me. I need to delete my database transaction logs...
4
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the...
3
by: sifrah | last post by:
Hi All, My SQL server transaction log is getting bigger every day and my HDD if running out of space. So i follow the MS KB about how to Shrinking the Transaction Log. After doing so the log is...
4
by: Brian D | last post by:
In MS SQL 2005 when you do a Full Backup does it also backup and truncate the transaction logs or do I need to back the transaction logs up separately? Thanks. Brian
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.