Groups | Blog | Home
all groups > sql server replication > march 2006 >

sql server replication : Deleting TLogs


LPR-3rd
3/7/2006 7:36:01 AM
Running Win 2k & SQL 2k

I am not sure if this is a bug or by design, but in my Database
Maintenance Plans, on the Transaction Log Backup tab, I have the
'remove files older than:' checked, with a value of 2 weeks, but my
TLogs do not delete automatically.

Is this by design or a bug??


AHIA,
Larry...
J.T. Moore
3/7/2006 6:19:26 PM
They should be getting deleted.

Two things to check:

1. Make sure the account the sql server agent runs as has permissions to
delete the backup files

2. The old backup files are deleted by the agent "after" the next time the
agent backups the log following the old backups expiration. If the backup
task fails to backup any of the transaction logs its scheduled to backup, the
agent will fail and the old backups will not be deleted. So for example if
the maintenance plan applies to db1 and db2, it must sucessfully backup the
log for both db1 and db2, before it will try to delete the log backups for
either database older than the 2 weeks you have specified.

J.T.


[quoted text, click to view]
LPR-3rd
3/8/2006 6:56:25 AM
Thanks JT.....

The wierd thing is that the dB backups are getting deleted, but the
TLlogs are not. I do not think this is a permission issue, but the
point you brought up about the is interesting. I will look at this
angle. Thanks.....
AddThis Social Bookmark Button