Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 26th, 2005, 03:49 AM
klegrand klegrand is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Belgium
Posts: 72 klegrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 1 m 31 sec
Reputation Power: 5
Extremely Log file grow

My database log file is extremely growing. In the properties of the database, the transaction log setup was in the beginning restricted to a max. size. The 60Gb disk is in 1 day completely full when I set it to unrestricted file growth.

Why is this growing so fast ? The amount of inserted records is +/- 100/hour.
I've also a job running that's cleans up the log file.

Can anyone help me with this ?

Thx,
Kurt


Reply With Quote
  #2  
Old July 26th, 2005, 12:13 PM
kcconnor's Avatar
kcconnor kcconnor is offline
Evil Republican...
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Probably running over your cat right now...
Posts: 250 kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level)kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level)kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level)kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level)kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level)kcconnor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 21 h 35 m 23 sec
Reputation Power: 37
Hi Kurt -

If you are not equipped to perform transaction log backups and restores, I strongly suggest you change the recovery mode of your database from "full" to "simple".

To truncate your transaction log, do the following:
Code:
sp_dboption 'database_name', 'trunc. log on chkpt.', 'on'

DBCC SHRINKFILE (2, TRUNCATEONLY)

sp_dboption 'database_name', 'trunc. log on chkpt.', 'off'


The DBCC statement assumes that your log file's ID number is 2 (if it isn't, you've done some customization. Run a select * from sysfiles to find it's ID if you don't know). The DBCC should be run while using the problem database.

The previous step will clear out the transaction log. To prevent the log from growing in the future, right-click on the database in enterprise manager, go to properties, select the options tab, and change the recovery model to simple.

Reply With Quote
  #3  
Old July 27th, 2005, 03:06 AM
klegrand klegrand is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Belgium
Posts: 72 klegrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 1 m 31 sec
Reputation Power: 5
Thanks a lot for this...This is working now...

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Extremely Log file grow


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT