SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


LDF AND TRN FILE KEEP GROWING


LDF AND TRN FILE KEEP GROWING

Author
Message
sinhuat.aw
sinhuat.aw
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 5
Can someone help me with this ?

As is -
Version - SQL Server 2005 Standard SP2
SQL DB Recovery Model = FULL
I run Transaction Log backup at 1PM and 1AM daily, using below script
BACKUP LOG @DatabaseName TO DISK = @Path

I run Database backup at 1:15AM daily, using below script
BACKUP DATABASE @DatabaseName TO DISK = @bakfile WITH NOFORMAT, INIT, SKIP, REWIND, NOUNLOAD

Observation -
Despite the transaction log backup every 12 hours, my LDF file keep growing. The TRN backup file size is also growing, to almost the size of the backup BAK file.
This is odd because there isnt a lot of transactions to the database within a 12hours windows. The DB backup file size is about right, but I was expecting the LDF to be kept under control, and TRN files size to be much smaller.

What has not been configured correct ? Can anyone check if my Transaction Log backup script is correct ? Do I have to add more parameters, e.g WITH INIT ?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86484 Visits: 45239
Do log backups more often.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


sinhuat.aw
sinhuat.aw
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 5
thanks, but i still think the amount of transactions in the database should not warrant the current size of the LDF or TRN file.

How about my transaction log backup script - "BACKUP LOG @DatabaseName TO DISK = @Path" , is this command sufficient ?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86484 Visits: 45239
http://www.sqlservercentral.com/articles/Administration/64582/
http://www.sqlservercentral.com/articles/Transaction+Logs/72488/

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search