473,782 Members | 2,485 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server 2000 - Server: Msg 9002, Level 17, State 6, Line 1

I have a stored procedure that takes 18 hours to complete. Sometimes
I get the below error message when I run the stored procedure.

'Server : Msg 9002, Level 17, State 6, Line 1 The log file for
database 'Customer' is full. Back up the transaction log for the
database to free up some log space.'.

I checked my log file and it is not full. And I don't know why I am
getting this message. Any help is appreciated.

Thanks,
Anjula
Jul 20 '05 #1
2 13054
Erland Sommarskog <so****@algonet .se> wrote in message news:<Xn******* *************** @127.0.0.1>...
[posted and mailed, please reply in news]

Anjula (an********@hot mail.com) writes:
I have a stored procedure that takes 18 hours to complete. Sometimes
I get the below error message when I run the stored procedure.

'Server : Msg 9002, Level 17, State 6, Line 1 The log file for
database 'Customer' is full. Back up the transaction log for the
database to free up some log space.'.

I checked my log file and it is not full. And I don't know why I am
getting this message. Any help is appreciated.


You probably get this message because your transaction log has filled
up, and there is no room on the disk for the file to autogrow.

Am I right to assume that the stored procedure performs updates?

It seems to me that the procedure has a very long transaction running.
When SQL Server truncates the transaction log - which it does spontaneously
if you are running with simple recovery - it can never truncate any
further ahead that the oldest open transaction.

If the procedure performs a whole lot of updates in one long transaction,
it will eventually fill up the log. But once the transaction has been
rolled back, SQL Server can truncate the log, and will do if you are
running with simple recovery.


Hi Erl,

I am doing updates in my stored procedure. I have one update in one
transaction.
I checked my transaction log space before I ran this proc and I had
enough room for it to grow. Sometimes this proc runs fine and
sometimes I get the above error.

Thanks,
Anjula
Jul 20 '05 #2
Anjula (an********@hot mail.com) writes:
I am doing updates in my stored procedure. I have one update in one
transaction.
I checked my transaction log space before I ran this proc and I had
enough room for it to grow. Sometimes this proc runs fine and
sometimes I get the above error.


Apparently there was not enough with space for it to grow. I would
expect that a procedure that runs for 18 hours incurs quite a strain
on the transaction log. Note also that other updates that takes place
while the procedure is running will also take up space in the log.

Not knowing anything about your application, I can only give general
advice such as investigate whether you can break up the transaction in
smaller parts without violating data integrity.

Also, you should investigate which recovery mode you are using, and
if you are running with full or bulk-logged mode, if you can increase
how often you back up the transaction log.
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #3

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

Similar topics

2
15229
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. In fact so many of you kind people confess to having succeeded in doing it. I have tried...
1
9858
by: ErickR | last post by:
We are experiencing a problem with Sql Server 2000 linking to an Access 97 file. We have two machines that link to this .mdb file, and we recently upgraded one to newer hardware, SP3a, MDAC 2.8, etc. The link on this upgraded machine no longer works, giving this message: Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. OLE DB error trace .
2
22713
by: jet | last post by:
Hi, Maybe this is an easy task, but I'm having a really hard time figuring out how to do this. I'm a complete newbie to SQL Server. I have a database dump file from MySQL that's in .sql format. I'm trying to figure out how to import that into SQL Server 2000 so that I'll be able to manipulate it in a gui format, rather than command line. I can't find any import that takes a .sql file. I've been trying to load it into the query...
3
9103
by: markydev | last post by:
Hi, I'm using sql server 2000 sp4. I've 2 databases linked, an instance and my local. I'm getting two different errors when trying to update the remote table (local server) from the instance. There is only one row of data in the table with an identity field. 1st sql:- UPDATE ..dbo.NUMBERS SET =3
2
17760
by: Amanda | last post by:
From a guy in Microsoft newsgroups: | In *comp.databases.ibm-db2* there are always IBM guys | from the Toronto labs on line.Post with the | -for the love of god please help- | line and I'm sure you'll get their attention. | Their usually very good:) So here's my transplanted post ==========================================
3
9984
by: Branco Medeiros | last post by:
Dear (and mighty) all: I backed up a database (SQL server 7.0) and tried to restore it on another system (SQL Server 2000). This is not the first time I'm doing this and never had a problem before: -- in the source db BACKUP db_icoaraci TO DISK = 'C:\TEMP\BACKUP-ICOARACI.DAT' --in the destination db
2
6967
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
4
2710
by: lcalabro | last post by:
Server: Msg 9002, Level 17, State 6, Procedure DelTDByTrxNum, Line 83 The log file for database 'agresso' is full. Back up the transaction log for the database to free up some log space. How do I check the archive log files sizes, how full they are, how to auto extend the log files? How can I fix the error above?
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.