I have a recurring problem of a transaction log filling up and don't understand exactly what SQL Server is doing with the space allocation I specify.
I have the database set to 'simple' recovery model which means the transaction log truncates on checkpoints I thought? The database backs up once a day at 2:00am.
The transaction log was set to 'Restrict File Growth 10MB' and 'Space Allocated 2MB'. It is set to 'Automatically Grow File by 10%'.
When the transaction log first ran out of space, I decided to experiment and manually increased the 'Restrict File Growth to 100MB' and manually changed the 'Space Allocated to 15MB'.
The next time the transaction log filled up, I checked my transaction log settings and they had been changed to 'Restrict File Growth 31MB' and 'Space Allocated 2MB' even though I didn't change them.
Does SQL Server automatically alter these settings for some reason? If so, how can I prevent this? Because this problem keeps occuring, today I set the transaction log to 'Unrestricted File Growth' until I can resolve the issue.
It appears to report the log filled up when it bumps into the 2MB space allocated even though the file should be able to grow to 31MB. Am I reading this wrong? The space allocated is the files current space usage on disk of a total available to it specified in the restrict file growth setting right? Shouldn't the 'space allocated' grow until it reaches the maximum size specified in the 'restrict file growth' setting? And furthermore, shouldn't it drop every time the transaction log truncates due to checkpoints being issued. Is there something that prevents checkpoints from occurring regularly and this is blowing up the transaction log?
It is also puzzling to me at how the transaction log could be getting so large when the recovery model is set to 'simple'(related to checkpoint issue above perhaps?).
TIA
I have the database set to 'simple' recovery model which means the transaction log truncates on checkpoints I thought? The database backs up once a day at 2:00am.
The transaction log was set to 'Restrict File Growth 10MB' and 'Space Allocated 2MB'. It is set to 'Automatically Grow File by 10%'.
When the transaction log first ran out of space, I decided to experiment and manually increased the 'Restrict File Growth to 100MB' and manually changed the 'Space Allocated to 15MB'.
The next time the transaction log filled up, I checked my transaction log settings and they had been changed to 'Restrict File Growth 31MB' and 'Space Allocated 2MB' even though I didn't change them.
Does SQL Server automatically alter these settings for some reason? If so, how can I prevent this? Because this problem keeps occuring, today I set the transaction log to 'Unrestricted File Growth' until I can resolve the issue.
It appears to report the log filled up when it bumps into the 2MB space allocated even though the file should be able to grow to 31MB. Am I reading this wrong? The space allocated is the files current space usage on disk of a total available to it specified in the restrict file growth setting right? Shouldn't the 'space allocated' grow until it reaches the maximum size specified in the 'restrict file growth' setting? And furthermore, shouldn't it drop every time the transaction log truncates due to checkpoints being issued. Is there something that prevents checkpoints from occurring regularly and this is blowing up the transaction log?
It is also puzzling to me at how the transaction log could be getting so large when the recovery model is set to 'simple'(related to checkpoint issue above perhaps?).
TIA