sp_dboption pubs_db
does show 'trunc. log on chkpt.' to be set.
I tried
DBCC
SHRINKFILE(pubs_db_log,100)and for a while, the pubs_db_log.ldf was about 100M and then it grew to 10GB.
I have a process running that is inserting more than 15K rows per hour and I would like to keep the transaction log from growing. How do I control the tx log growth

Transaction log keeps growing
Zvonimir
Matt Fraser
thanks,
mark
Ricardo Oliveira
Jason -
Did you have a chance to analyze the problem and collect the data we asked for < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Please let us know your answers to the questions asked in Mark’s and my e-mail.
Thanks
Mirek
admeralthrawn
Jason -
I have few questions:
1) What version of SQL Server are you using
2) What is your recovery model
(if you use SQL Server Beta2 or CTP15 look for “recovery_model_desc”
in sys.databases and indicate “log_reuse_wait” as well)
3) Do you have any long-running transaction .
Are you inserting all rows in one transaction or in multiple transactions
4) Why do you want to shrink the log . This may look like a silly question, but shrinking the log could be expensive, since you need to grow it later.
Also I would like you to do the following.
Could you please run dbcc sqlperf (logspace) and let me know the log size, log space used%
and status for your database after you completed your inserts.
Thanks
Mirek
davidhhhhhhhhhhhhhh
I'm not sure that it is not truncating the log. I assume you are going by the file size. What if it is truncating the log but the file size simply represents the log contents for the period of heaviest activity since the last shrink. In that case shrinking the file may not be the solution so much as tolerating it at 10Gig so long as it settles down around that size.
Let me know what you find out and good luck