Simple Recovery Model - Log file not truncating

  • I have a database (actually 4) that have abnormally large log files. For example, there is one database that has a 102 MB mdf file and 6.7 GB ldf file. The recovery model is simple. It has been this way for at least three days. If I try to shrink the log file, I can see that there is only 1% free space. So it appears that something is not truncating correctly. None of these databases see large transactions.

    I even tried changing the recovery model to full, performing a full database backup, perform a transaction log backup (made sure that 'truncate the transaction log' was checked), and the free space was still only 1% free.

    Later today, I will detach the db, delete the log file, and then re-attach the db to resolve this issue. But I have seen it occur once or twice on other servers. What could be causing this issue?

  • I think uncommitted transaction running long time lead to this. You can try to find is it exist?

  • The active connections to these databases only occur maybe once or twice a day and so far, I haven't seen any long running transactions.

  • Can you please check error log and see if below is applicable?

    FIX: Automatic checkpoints on some SQL Server 2000 databases do not run as expected

    http://support.microsoft.com/kb/909369/en-us

     

     

  • Do you realize that you are in the SQL 2005 Admin forum? That KB only applies to SQL 2000.

    Matt

  • I have only seen long running queries cause this.

  • Matt,

    My apologies.

     

     

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply