Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Transaction log filling up
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sean_B
Posting Yak Master

United Kingdom
111 Posts

Posted - 08/13/2009 :  04:02:39  Show Profile  Reply with Quote
Hi,

I've been running an incremental update on a very large table, updating it in batches of about 100,000 records each time. Yet I have still run out of transaction log space, a few hours into the update, almost as if it was all being done in the same transaction.

I'm running this update from a management studio window, I notice that when I look in the activity monitor window there appear to be 2 transactions open, I'm not sure why ?

Is there something extra I might need to do to clear down the transaction logs whilst this process is running ?

Any suggestions about what I should check wouild be appreciated.




Sean

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 08/13/2009 :  04:43:27  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
What recovery model is the DB in?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

Sean_B
Posting Yak Master

United Kingdom
111 Posts

Posted - 08/13/2009 :  04:55:25  Show Profile  Reply with Quote
It was in bulk-logged when the problem happened, I'm rerunning at the moment in simple, and it seems to be running ok, so far.

Sean
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 08/14/2009 :  03:53:01  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
In Bulk-logged or full recovery, a transaction log backup is required to make the log space reusable. In Simple the regular checkpoint process will do that.

Please read through this - http://www.sqlservercentral.com/articles/64582/

--
Gail Shaw
SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000